Fix dialog rendering

This commit is contained in:
otya128 committed 2016-12-26 23:14:00 +09:00
1 parent a2127e6e6b
commit dbfc18c97a
1 file changed
+4 -4
+4 -4
View File
@@ -838,10 +838,6 @@ class PetitComputer
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
version(test) glLoadIdentity();
version(test) glRotatef(rot_test_deg, rot_test_x, rot_test_y, rot_test_z);
if (dialog)
{
dialog.render();
}
console.render();
graphic.render();
@@ -878,6 +874,10 @@ class PetitComputer
sprite.render();//Zソートすべき->やった->プチコンの挙動的に安定ソートか非安定ソートか
glDepthMask(GL_TRUE);
glDisable(GL_BLEND);
if (dialog)
{
dialog.render();
}
SDL_GL_SwapWindow(window);
auto renderticks = (SDL_GetTicks() - profile);
if(renderprofile) writeln(renderticks);