Moved bits parameters from glfwOpenWindow to glfwOpenWindowHint.

This commit is contained in:
Camilla Berglund
2010-09-09 19:58:51 +02:00
parent 5fd3fc71de
commit 950a3beda2
16 changed files with 59 additions and 28 deletions

View File

@@ -334,8 +334,10 @@ int main(int argc, char* argv[])
height = 480;
mode = GLFW_WINDOW;
glfwOpenWindowHint(GLFW_DEPTH_BITS, 16);
/* Open window */
window = glfwOpenWindow(width,height,0,0,0,0,16,0,mode);
window = glfwOpenWindow(width,height,mode);
if (!window)
{
fprintf(stderr, "Could not open window\n");