|
|
@ -122,12 +122,13 @@ static void initWGLExtensions(_GLFWwindow* window) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Returns the specified attribute of the specified pixel format
|
|
|
|
// Returns the specified attribute of the specified pixel format
|
|
|
|
// NOTE: Do not call this unless we have found WGL_ARB_pixel_format
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) |
|
|
|
static int getPixelFormatAttrib(_GLFWwindow* window, int pixelFormat, int attrib) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int value = 0; |
|
|
|
int value = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assert(window->wgl.ARB_pixel_format); |
|
|
|
|
|
|
|
|
|
|
|
if (!window->wgl.GetPixelFormatAttribivARB(window->wgl.dc, |
|
|
|
if (!window->wgl.GetPixelFormatAttribivARB(window->wgl.dc, |
|
|
|
pixelFormat, |
|
|
|
pixelFormat, |
|
|
|
0, 1, &attrib, &value)) |
|
|
|
0, 1, &attrib, &value)) |
|
|
|