mirror of
https://github.com/glfw/glfw.git
synced 2026-11-18 12:54:54 +00:00
Moved bits parameters from glfwOpenWindow to glfwOpenWindowHint.
This commit is contained in:
+3
-1
@@ -329,7 +329,9 @@ int main(int argc, char *argv[])
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
window = glfwOpenWindow( 300,300, 0,0,0,0, 16,0, GLFW_WINDOW );
|
||||
glfwOpenWindowHint(GLFW_DEPTH_BITS, 16);
|
||||
|
||||
window = glfwOpenWindow( 300, 300, GLFW_WINDOW );
|
||||
if (!window)
|
||||
{
|
||||
fprintf( stderr, "Failed to open GLFW window\n" );
|
||||
|
||||
Reference in New Issue
Block a user