Some ATI cards have both ATI_draw_buffers AND ARB_draw_buffers, if both, go with ARB_draw_buffers
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@507 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
eb150f3114
commit
2ab88e167e
|
@ -91,6 +91,7 @@ BOOL Callback_PeekMessages()
|
||||||
#else // GLX
|
#else // GLX
|
||||||
// This is called from Outside of our video thread, from EmuThread
|
// This is called from Outside of our video thread, from EmuThread
|
||||||
// The calls are NOT thread safe, so it breaks everything
|
// The calls are NOT thread safe, so it breaks everything
|
||||||
|
return FALSE;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -379,7 +380,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
|
||||||
|
|
||||||
/* create a fullscreen window */
|
/* create a fullscreen window */
|
||||||
GLWin.attr.override_redirect = True;
|
GLWin.attr.override_redirect = True;
|
||||||
GLWin.attr.event_mask = ExposureMask | StructureNotifyMask | ResizeRedirectMask;
|
GLWin.attr.event_mask = ExposureMask | StructureNotifyMask;
|
||||||
GLWin.win = XCreateWindow(GLWin.dpy, RootWindow(GLWin.dpy, vi->screen),
|
GLWin.win = XCreateWindow(GLWin.dpy, RootWindow(GLWin.dpy, vi->screen),
|
||||||
0, 0, dpyWidth, dpyHeight, 0, vi->depth, InputOutput, vi->visual,
|
0, 0, dpyWidth, dpyHeight, 0, vi->depth, InputOutput, vi->visual,
|
||||||
CWBorderPixel | CWColormap | CWEventMask | CWOverrideRedirect,
|
CWBorderPixel | CWColormap | CWEventMask | CWOverrideRedirect,
|
||||||
|
|
|
@ -86,7 +86,8 @@ bool Renderer::Create2()
|
||||||
|
|
||||||
if( strstr(ptoken, "GL_EXT_blend_logic_op") != NULL )
|
if( strstr(ptoken, "GL_EXT_blend_logic_op") != NULL )
|
||||||
g_bBlendLogicOp = true;
|
g_bBlendLogicOp = true;
|
||||||
if( strstr(ptoken, "ATI_draw_buffers") != NULL )
|
if( strstr(ptoken, "ATI_draw_buffers") != NULL && strstr(ptoken, "ARB_draw_buffers") == NULL)
|
||||||
|
//Checks if it ONLY has the ATI_draw_buffers extension, some have both
|
||||||
s_bATIDrawBuffers = true;
|
s_bATIDrawBuffers = true;
|
||||||
|
|
||||||
s_bFullscreen = g_Config.bFullscreen;
|
s_bFullscreen = g_Config.bFullscreen;
|
||||||
|
|
Loading…
Reference in New Issue