Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowX11.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp
index dd2bb18882b..560a0712b8b 100644
--- a/intern/ghost/intern/GHOST_WindowX11.cpp
+++ b/intern/ghost/intern/GHOST_WindowX11.cpp
@@ -168,13 +168,10 @@ static XVisualInfo *x11_visualinfo_from_glx(
GLXFBConfig *fbconfig)
{
XVisualInfo *visual = NULL;
- GLXFBConfig *fbconfigs;
- int nbfbconfig;
GHOST_TUns16 numOfAASamples = *r_numOfAASamples;
int glx_major, glx_minor, glx_version; /* GLX version: major.minor */
GHOST_TUns16 actualSamples;
int glx_attribs[64];
- int i;
*fbconfig = NULL;
@@ -207,6 +204,9 @@ static XVisualInfo *x11_visualinfo_from_glx(
&& (glXGetVisualFromFBConfig ||
(glXGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)glXGetProcAddressARB((const GLubyte *)"glXGetVisualFromFBConfig")) != NULL)
) {
+ GLXFBConfig *fbconfigs;
+ int nbfbconfig;
+ int i;
for (;;) {