mesa/st: enable carry/borrow lowering pass
[mesa.git] / src / mesa / main / blend.c
index eb4f1d6bef23f9337c6951f894bf6ec4d3f7d8ea..c37c0fea52b6a0d392f03e705a20a101cbd0461e 100644 (file)
@@ -911,7 +911,9 @@ void _mesa_init_color( struct gl_context * ctx )
    ctx->Color.LogicOp = GL_COPY;
    ctx->Color.DitherFlag = GL_TRUE;
 
-   if (ctx->Visual.doubleBufferMode) {
+   /* GL_FRONT is not possible on GLES. Instead GL_BACK will render to either
+    * the front or the back buffer depending on the config */
+   if (ctx->Visual.doubleBufferMode || _mesa_is_gles(ctx)) {
       ctx->Color.DrawBuffer[0] = GL_BACK;
    }
    else {