diff options
Diffstat (limited to 'src/libjin/graphics/je_window.cpp')
-rw-r--r-- | src/libjin/graphics/je_window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libjin/graphics/je_window.cpp b/src/libjin/graphics/je_window.cpp index 49877e3..f41e699 100644 --- a/src/libjin/graphics/je_window.cpp +++ b/src/libjin/graphics/je_window.cpp @@ -88,11 +88,10 @@ namespace JinEngine SDL_GL_SetSwapInterval(vsync ? 1 : 0); SDL_GL_MakeCurrent(mWnd, ctx); // Default configuration. - gl.setClearColor(0, 0, 0, 0); - glClear(GL_COLOR_BUFFER_BIT); - gl.setColor(0xff, 0xff, 0xff, 0xff); gl.enable(GL_BLEND); gl.enable(GL_TEXTURE_2D); + gl.setClearColor(0, 0, 0, 0); + gl.setColor(0xff, 0xff, 0xff, 0xff); // Default blend function. gl.setBlendMode(OpenGL::BlendMode::ALPHA); // Bind to default canvas. |