More buildfixes for ANGLE

This commit is contained in:
twinaphex 2019-12-07 07:24:20 +01:00
parent c6b325e4d6
commit 1fd6d024eb
2 changed files with 3 additions and 3 deletions

View File

@ -1775,7 +1775,7 @@ void Pass::build_commands(
else
glViewport(0, 0, size.width, size.height);
#ifndef HAVE_OPENGLES3
#if !defined(HAVE_OPENGLES)
if (framebuffer && framebuffer->get_format() == GL_SRGB8_ALPHA8)
glEnable(GL_FRAMEBUFFER_SRGB);
else
@ -1798,7 +1798,7 @@ void Pass::build_commands(
glDisableVertexAttribArray(0);
glDisableVertexAttribArray(1);
#ifndef HAVE_OPENGLES3
#if !defined(HAVE_OPENGLES)
glDisable(GL_FRAMEBUFFER_SRGB);
#endif

View File

@ -28,7 +28,7 @@
#include "../../config.h"
#endif
#ifdef HAVE_OPENGL
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
#include <gfx/gl_capabilities.h>
#include "../common/gl_common.h"
#endif