More buildfixes for ANGLE
This commit is contained in:
parent
c6b325e4d6
commit
1fd6d024eb
|
@ -1775,7 +1775,7 @@ void Pass::build_commands(
|
||||||
else
|
else
|
||||||
glViewport(0, 0, size.width, size.height);
|
glViewport(0, 0, size.width, size.height);
|
||||||
|
|
||||||
#ifndef HAVE_OPENGLES3
|
#if !defined(HAVE_OPENGLES)
|
||||||
if (framebuffer && framebuffer->get_format() == GL_SRGB8_ALPHA8)
|
if (framebuffer && framebuffer->get_format() == GL_SRGB8_ALPHA8)
|
||||||
glEnable(GL_FRAMEBUFFER_SRGB);
|
glEnable(GL_FRAMEBUFFER_SRGB);
|
||||||
else
|
else
|
||||||
|
@ -1798,7 +1798,7 @@ void Pass::build_commands(
|
||||||
glDisableVertexAttribArray(0);
|
glDisableVertexAttribArray(0);
|
||||||
glDisableVertexAttribArray(1);
|
glDisableVertexAttribArray(1);
|
||||||
|
|
||||||
#ifndef HAVE_OPENGLES3
|
#if !defined(HAVE_OPENGLES)
|
||||||
glDisable(GL_FRAMEBUFFER_SRGB);
|
glDisable(GL_FRAMEBUFFER_SRGB);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "../../config.h"
|
#include "../../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_OPENGL
|
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
|
||||||
#include <gfx/gl_capabilities.h>
|
#include <gfx/gl_capabilities.h>
|
||||||
#include "../common/gl_common.h"
|
#include "../common/gl_common.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue