comparison test/testgles.c @ 3397:c64ae6ee6a6d

Fixed handling of the initial window size.
author Mike Gorchak <lestat@i.com.ua>
date Tue, 13 Oct 2009 18:14:22 +0000
parents c18c03927a77
children 5ecc05616f39
comparison
equal deleted inserted replaced
3396:d6b79fc83362 3397:c64ae6ee6a6d
240 240
241 /* Continue for next window */ 241 /* Continue for next window */
242 continue; 242 continue;
243 } 243 }
244 244
245 glViewport(0, 0, DEFAULT_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT); 245 glViewport(0, 0, state->window_w, state->window_h);
246 glMatrixMode(GL_PROJECTION); 246 glMatrixMode(GL_PROJECTION);
247 glLoadIdentity(); 247 glLoadIdentity();
248 glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0); 248 glOrthof(-2.0, 2.0, -2.0, 2.0, -20.0, 20.0);
249 glMatrixMode(GL_MODELVIEW); 249 glMatrixMode(GL_MODELVIEW);
250 glLoadIdentity(); 250 glLoadIdentity();