Skip to content

Commit

Permalink
fix #101: OpenGL render was cleaning screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Altren committed Dec 6, 2015
1 parent 1c5a49c commit e42c3de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Common/Base/OpenGL/BaseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ namespace base
break;
}
}
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);

drawOneFrame();
if (!mWindowOn)
SDL_Delay(50);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ namespace MyGUI

void OpenGLRenderManager::begin()
{
glClearColor(0, 0, 0, 1);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glLoadIdentity();

//save current attributes
Expand Down
2 changes: 1 addition & 1 deletion Tools/EditorFramework/MyGUI_FilterNoneSkin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace MyGUI
#elif MYGUI_DIRECTX11_PLATFORM
DirectX11RenderManager::getInstancePtr()->doRender(_buffer, _texture, _count);
#elif MYGUI_OPENGL3_PLATFORM
OpenGL3RenderManager::getInstancePtr()->doRender(_buffer, _texture, _count);
OpenGL3RenderManager::getInstancePtr()->doRender(_buffer, _texture, _count);
#endif
}

Expand Down

0 comments on commit e42c3de

Please sign in to comment.