Permalink
Browse files

forgot glClear after refactoring project class

  • Loading branch information...
1 parent 92ac3d6 commit 47d2c96e7107cf1a24434c952a27587ed82f49b4 @pixeljetstream committed Aug 19, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −1 README
  2. +2 −0 backend/test/gfxprogram.cpp
  3. +2 −0 backend/test/gfxtexture.cpp
  4. +2 −0 backend/test/gfxvertex.cpp
  5. +2 −0 backend/test/mesh.cpp
View
@@ -26,5 +26,5 @@ A related project is the wxLua based EstrelaEditor
http://www.luxinia.de/index.php/Estrela which will
get tightly knit with luxinia2
-See LICENSE for details (New-BSD) and 3RDPARTY for
+See LICENSE for details (MIT) and 3RDPARTY for
other libraries used in this project.
@@ -149,6 +149,8 @@ class GfxProgram : public Project
int onDraw(int width, int height) {
logic(width,height);
+ glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
@@ -83,6 +83,8 @@ class GfxTexture : public Project
int onDraw(int width, int height) {
logic(width,height);
+ glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
@@ -112,6 +112,8 @@ class GfxVertex : public Project
int onDraw(int width, int height) {
logic(width,height);
+ glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
lxCVector4 lightpos(0,0,0,1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
@@ -84,6 +84,8 @@ class MeshTest : public Project
int onDraw(int width, int height) {
logic(width,height);
+
+ glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_NORMAL_ARRAY);

0 comments on commit 47d2c96

Please sign in to comment.