diff options
author | romulox_x <romulox_x@yahoo.com> | 2015-02-21 13:57:12 -0800 |
---|---|---|
committer | romulox_x <romulox_x@yahoo.com> | 2015-02-21 13:57:12 -0800 |
commit | 2ac767b1f52f2d5d9d6b2dc00e8c3d065b9fc9bb (patch) | |
tree | 28b4493652dc3d66f87aa913b33761ff4bd92167 /drivers/gles2 | |
parent | 1d7337ba10ad593f0786d3e356cf0b05aa9be2b4 (diff) |
changed viewport clearing to use the alpha value of the clear color, and made the transparent bg option of viewport force a clear color of 0,0,0,0
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index fe42b67d23..b6a48652cb 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -4280,7 +4280,7 @@ void RasterizerGLES2::clear_viewport(const Color& p_color) { } glEnable(GL_SCISSOR_TEST); - glClearColor(p_color.r,p_color.g,p_color.b,1.0); + glClearColor(p_color.r,p_color.g,p_color.b,p_color.a); glClear(GL_COLOR_BUFFER_BIT); //should not clear if anything else cleared.. glDisable(GL_SCISSOR_TEST); }; |