summaryrefslogtreecommitdiff
path: root/drivers/gles1
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gles1')
-rw-r--r--drivers/gles1/rasterizer_gles1.cpp6
-rw-r--r--drivers/gles1/rasterizer_gles1.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gles1/rasterizer_gles1.cpp b/drivers/gles1/rasterizer_gles1.cpp
index f763a60abb..3ffebd4703 100644
--- a/drivers/gles1/rasterizer_gles1.cpp
+++ b/drivers/gles1/rasterizer_gles1.cpp
@@ -4602,6 +4602,12 @@ void RasterizerGLES1::canvas_begin() {
}
+
+void RasterizerGLES1::canvas_disable_blending() {
+
+ glDisable(GL_BLEND);
+}
+
void RasterizerGLES1::canvas_set_opacity(float p_opacity) {
canvas_opacity = p_opacity;
diff --git a/drivers/gles1/rasterizer_gles1.h b/drivers/gles1/rasterizer_gles1.h
index a20477eced..e7e3200bbc 100644
--- a/drivers/gles1/rasterizer_gles1.h
+++ b/drivers/gles1/rasterizer_gles1.h
@@ -1126,6 +1126,7 @@ public:
/* CANVAS API */
virtual void canvas_begin();
+ virtual void canvas_disable_blending();
virtual void canvas_set_opacity(float p_opacity);
virtual void canvas_set_blend_mode(VS::MaterialBlendMode p_mode);
virtual void canvas_begin_rect(const Matrix32& p_transform);