forked from AuroraMiddleware/gtk
gdkglcontext-win32.c: Fix Build on C89 Compilers
Make sure variables are declared at the top of the block.
This commit is contained in:
parent
8d7a235a04
commit
933ee3af56
@ -459,6 +459,11 @@ _gdk_win32_gl_context_realize (GdkGLContext *context,
|
||||
gint pixel_format;
|
||||
gboolean debug_bit, compat_bit;
|
||||
|
||||
/* request flags and specific versions for core (3.2+) WGL context */
|
||||
gint flags = 0;
|
||||
gint glver_major = 0;
|
||||
gint glver_minor = 0;
|
||||
|
||||
if (!_set_pixformat_for_hdc (context_win32->gl_hdc,
|
||||
&pixel_format,
|
||||
context_win32->need_alpha_bits))
|
||||
@ -469,12 +474,6 @@ _gdk_win32_gl_context_realize (GdkGLContext *context,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/* request flags and specific versions for core (3.2+) WGL context */
|
||||
gint flags = 0;
|
||||
gint glver_major = 0;
|
||||
gint glver_minor = 0;
|
||||
|
||||
gdk_gl_context_get_required_version (context, &glver_major, &glver_minor);
|
||||
debug_bit = gdk_gl_context_get_debug_enabled (context);
|
||||
compat_bit = gdk_gl_context_get_forward_compatible (context);
|
||||
|
Loading…
Reference in New Issue
Block a user