comparison test/testgl.c @ 363:ca0b4ba5313e

Date: Thu, 18 Apr 2002 13:50:53 -0700 From: Joseph Carter <knghtbrd@bluecherry.net> Subject: [SDL] A critical bugfix! I discovered a problem with testgl.c which absolutely MUST be fixed! Not fixing this bug immediately will be a great blow to budding OpenGL coders everywhere!
author Sam Lantinga <slouken@libsdl.org>
date Fri, 19 Apr 2002 03:29:22 +0000
parents 66f815c147ed
children c59692dcdce0
comparison
equal deleted inserted replaced
362:3791ff65cddd 363:ca0b4ba5313e
452 } 452 }
453 453
454 /* Initialize the display */ 454 /* Initialize the display */
455 switch (bpp) { 455 switch (bpp) {
456 case 8: 456 case 8:
457 rgb_size[0] = 2; 457 rgb_size[0] = 3;
458 rgb_size[1] = 3; 458 rgb_size[1] = 3;
459 rgb_size[2] = 3; 459 rgb_size[2] = 2;
460 break; 460 break;
461 case 15: 461 case 15:
462 case 16: 462 case 16:
463 rgb_size[0] = 5; 463 rgb_size[0] = 5;
464 rgb_size[1] = 5; 464 rgb_size[1] = 5;