dmuratshin 8 年之前
父節點
當前提交
c308fb040d
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      examples/Demo/src/TestOpenGL.h

+ 4 - 1
examples/Demo/src/TestOpenGL.h

@@ -75,7 +75,7 @@ public:
 
 
     void doRender(const RenderState& rs)
     void doRender(const RenderState& rs)
     {
     {
-        STDRenderer::getCurrent()->flush();
+		MaterialX::null->apply();
 
 
 
 
         glEnable(GL_BLEND);
         glEnable(GL_BLEND);
@@ -141,6 +141,9 @@ public:
         oxglDisableVertexAttribArray(1);
         oxglDisableVertexAttribArray(1);
 
 
         CHECKGL();
         CHECKGL();
+
+		//reset states to defaults after direct opengl usage
+		rc().reset();
     }
     }
 };
 };