Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ogl: change the default buffer upload on osx+nvidia
  • Loading branch information
degasus committed Sep 11, 2013
1 parent 2b10142 commit 3b0b515
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 3b0b515

Please sign in to comment.