diff options
author | chai <chaifix@163.com> | 2018-12-26 20:35:32 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-26 20:35:32 +0800 |
commit | 9e13e3febeda9e7a0587fcb56422b9d6a8330c91 (patch) | |
tree | ef64fcea5be87710f2ef92e380a932c6bb71a737 /src/libjin/graphics/je_window.cpp | |
parent | 74e76362dadd38c5a5231a4630c093efdd0febfd (diff) |
*blend
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. |