diff --git a/modules/FindOpenGLES2.cmake b/modules/FindOpenGLES2.cmake index c534bfd81..414db8368 100644 --- a/modules/FindOpenGLES2.cmake +++ b/modules/FindOpenGLES2.cmake @@ -8,7 +8,9 @@ # # Library -find_library(OPENGLES2_LIBRARY GLESv2) +find_library(OPENGLES2_LIBRARY NAMES + GLESv2 + ppapi_gles2) # NaCl # Include dir find_path(OPENGLES2_INCLUDE_DIR diff --git a/src/AbstractShaderProgram.h b/src/AbstractShaderProgram.h index 1ed8222bc..0977ab649 100644 --- a/src/AbstractShaderProgram.h +++ b/src/AbstractShaderProgram.h @@ -36,6 +36,8 @@ namespace Math { template class Vector; } +template class Color3; +template class Color4; class Context; class Shader; @@ -1211,8 +1213,6 @@ template struct Attribute>: public Attribute struct Attribute>: public Attribute> {}; template struct Attribute>: public Attribute> {}; -template class Color3; -template class Color4; template struct Attribute>: public Attribute> {}; template struct Attribute>: public Attribute> {}; diff --git a/src/AbstractTexture.h b/src/AbstractTexture.h index 27b1895eb..35abf4823 100644 --- a/src/AbstractTexture.h +++ b/src/AbstractTexture.h @@ -232,9 +232,11 @@ class MAGNUM_EXPORT AbstractTexture { * are converted to range @f$ [-1.0; 1.0] @f$. * @requires_gl31 Extension @extension{EXT,texture_snorm} */ - NormalizedByte, + NormalizedByte #ifndef MAGNUM_TARGET_GLES + , + /** * Normalized unsigned short, i.e. values from range @f$ [0; 65536] @f$ * are converted to range @f$ [0.0; 1.0] @f$. diff --git a/src/Shaders/CMakeLists.txt b/src/Shaders/CMakeLists.txt index 926bc6238..38a3ce0ad 100644 --- a/src/Shaders/CMakeLists.txt +++ b/src/Shaders/CMakeLists.txt @@ -1,6 +1,6 @@ corrade_add_resource(MagnumShaders_RCS MagnumShaders FlatShader2D.vert FlatShader2D.frag - PhongShader.frag PhongShader.vert + PhongShader.vert PhongShader.frag compatibility.glsl) set(MagnumShaders_SRCS FlatShader.cpp