Replaced comment with assertion.
This commit is contained in:
parent
5733b0e4cb
commit
c21a8573b4
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user