mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
glx: use a block to fix declarations after code warning
This commit is contained in:
parent
e330d90e91
commit
e975e18beb
1 changed files with 9 additions and 7 deletions
|
|
@ -794,15 +794,17 @@ glXSwapBuffers(Display * dpy, GLXDrawable drawable)
|
|||
gc = __glXGetCurrentContext();
|
||||
|
||||
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
|
||||
__GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
|
||||
{
|
||||
__GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable);
|
||||
|
||||
if (pdraw != NULL) {
|
||||
if (gc && drawable == gc->currentDrawable) {
|
||||
glFlush();
|
||||
if (pdraw != NULL) {
|
||||
if (gc && drawable == gc->currentDrawable) {
|
||||
glFlush();
|
||||
}
|
||||
|
||||
(*pdraw->psc->driScreen->swapBuffers)(pdraw, 0, 0, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
(*pdraw->psc->driScreen->swapBuffers)(pdraw, 0, 0, 0);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue