diff options
author | chai <chaifix@163.com> | 2018-12-29 23:27:16 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-12-29 23:27:16 +0800 |
commit | cca2e32c4abe70c0c16dbdeaef7e760a5ffa3ea8 (patch) | |
tree | 3b043e357cb6835195df19b6de94a35f61d45b76 /src/libjin/graphics/je_window.cpp | |
parent | 9e13e3febeda9e7a0587fcb56422b9d6a8330c91 (diff) |
*blend mode
Diffstat (limited to 'src/libjin/graphics/je_window.cpp')
-rw-r--r-- | src/libjin/graphics/je_window.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libjin/graphics/je_window.cpp b/src/libjin/graphics/je_window.cpp index f41e699..25d003f 100644 --- a/src/libjin/graphics/je_window.cpp +++ b/src/libjin/graphics/je_window.cpp @@ -88,15 +88,7 @@ namespace JinEngine SDL_GL_SetSwapInterval(vsync ? 1 : 0); SDL_GL_MakeCurrent(mWnd, ctx); // Default configuration. - 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. - gl.unbindCanvas(); - gl.unuseShader(); + gl.init(); return true; } |