Browse Source

Enable GL_COLOR_ARRAY in ShellRenderInterfaceOpenGL.cpp.

This means that people using this file as a starting point will be able to use
non-textured coloured shapes and will be able to modify font colours.
Martin Foot 14 years ago
parent
commit
c65a426549
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Samples/shell/src/ShellRenderInterfaceOpenGL.cpp

+ 1 - 0
Samples/shell/src/ShellRenderInterfaceOpenGL.cpp

@@ -41,6 +41,7 @@ void ShellRenderInterfaceOpenGL::RenderGeometry(Rocket::Core::Vertex* vertices,
 	glTranslatef(translation.x, translation.y, 0);
 	glTranslatef(translation.x, translation.y, 0);
 
 
 	glVertexPointer(2, GL_FLOAT, sizeof(Rocket::Core::Vertex), &vertices[0].position);
 	glVertexPointer(2, GL_FLOAT, sizeof(Rocket::Core::Vertex), &vertices[0].position);
+	glEnableClientState(GL_COLOR_ARRAY);
 	glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Rocket::Core::Vertex), &vertices[0].colour);
 	glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(Rocket::Core::Vertex), &vertices[0].colour);
 
 
 	if (!texture)
 	if (!texture)