mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 21:56:36 +00:00
Move variable definition to conform to glfw C standard.
This commit is contained in:
parent
debabe815e
commit
832342cc0f
@ -143,6 +143,7 @@ static int choosePixelFormat(_GLFWwindow* window,
|
|||||||
_GLFWfbconfig* usableConfigs;
|
_GLFWfbconfig* usableConfigs;
|
||||||
const _GLFWfbconfig* closest;
|
const _GLFWfbconfig* closest;
|
||||||
int i, pixelFormat, nativeCount, usableCount;
|
int i, pixelFormat, nativeCount, usableCount;
|
||||||
|
int pixelFormatAttribs[GLFW_PFA_COUNT];
|
||||||
|
|
||||||
if (_glfw.wgl.ARB_pixel_format)
|
if (_glfw.wgl.ARB_pixel_format)
|
||||||
{
|
{
|
||||||
@ -169,7 +170,6 @@ static int choosePixelFormat(_GLFWwindow* window,
|
|||||||
if (_glfw.wgl.ARB_pixel_format)
|
if (_glfw.wgl.ARB_pixel_format)
|
||||||
{
|
{
|
||||||
// Get pixel format attributes through "modern" extension
|
// Get pixel format attributes through "modern" extension
|
||||||
int pixelFormatAttribs[GLFW_PFA_COUNT];
|
|
||||||
getPixelFormatAttribs(window, n, pixelFormatAttribs );
|
getPixelFormatAttribs(window, n, pixelFormatAttribs );
|
||||||
|
|
||||||
if (!pixelFormatAttribs[GLFW_PFA_WGL_SUPPORT_OPENGL_ARB] ||
|
if (!pixelFormatAttribs[GLFW_PFA_WGL_SUPPORT_OPENGL_ARB] ||
|
||||||
|
Loading…
Reference in New Issue
Block a user