From 3b0b5155e8335d3645ed5860682ecb1975d8c342 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 11 Sep 2013 11:02:09 +0200 Subject: [PATCH] ogl: change the default buffer upload on osx+nvidia --- Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp index 814a628d1c..89c3cd0f28 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp @@ -21,8 +21,12 @@ StreamBuffer::StreamBuffer(u32 type, size_t size, StreamType uploadType) { glGenBuffers(1, &m_buffer); - bool nvidia = !strcmp(g_ogl_config.gl_vendor, "NVIDIA Corporation"); + bool nvidia = false; +#ifndef __APPLE__ + // OSX also reports to be nvidia, but the driver is self written and doesn't act like the windows nvidia driver. + nvidia = !strcmp(g_ogl_config.gl_vendor, "NVIDIA Corporation"); +#endif if(m_uploadtype & STREAM_DETECT) { // TODO: move this to InitBackendInfo