Game Development Community

Gfxcolorwriteenable_x Flags Wrong

by Tom Spilman · in Torque Game Engine Advanced · 12/30/2004 (9:47 pm) · 2 replies

The flags for GFXCOLORWRITEENABLE_x were defined wrong. The code looks like this:

#define GFXCOLORWRITEENABLE_RED     1
#define GFXCOLORWRITEENABLE_GREEN   2
#define GFXCOLORWRITEENABLE_BLUE    8
#define GFXCOLORWRITEENABLE_ALPHA   16

... But the blue and alpha values are incorrect. It should be:

#define GFXCOLORWRITEENABLE_RED     1
#define GFXCOLORWRITEENABLE_GREEN   2
#define GFXCOLORWRITEENABLE_BLUE    4
#define GFXCOLORWRITEENABLE_ALPHA   8

Hope i all my bug reports don't bum you guys out. =)

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
12/30/2004 (9:51 pm)
Nice. We're glad you're giving us _fixes_ in addition to the bug reports. :)
#2
01/05/2005 (4:21 pm)
Ya, the fixes save us a lot of time. This one is now checked in.