DC Build Make Fails on Multitexture Arrays Sample "GL_BGRA" Undeclared
When trying to run Make to build for the dreamcast, I get the following error:
[ 47%] Building C object CMakeFiles/multitexture_arrays.dir/samples/multitexture_arrays/main.c.obj
/src/samples/multitexture_arrays/main.c: In function ‘RenderCallback’:
/src/samples/multitexture_arrays/main.c:103:20: error: ‘GL_BGRA’ undeclared (first use in this function)
/src/samples/multitexture_arrays/main.c:103:20: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [CMakeFiles/multitexture_arrays.dir/build.make:82: CMakeFiles/multitexture_arrays.dir/samples/multitexture_arrays/main.c.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:846: CMakeFiles/multitexture_arrays.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
The line causing this error is as follows:
/* Bind the Color Array */ glColorPointer(GL_BGRA, GL_UNSIGNED_BYTE, 0, ARGB_ARRAY);
Any idea what might be causing this? I'm not super knowledgeable on OpenGL or C/C++ in general, but I'm trying to figure it out.