Enable glBindSampler in GLES

This commit is contained in:
Deve 2017-02-01 22:52:07 +01:00
parent b54c3648b3
commit d4d5452825

View File

@ -171,7 +171,11 @@ public:
template<int N, typename... TexIds>
void setTextureUnitsImpl(GLuint tex_id, TexIds... args)
{
#if defined(USE_GLES2)
if (CVS->getGLSLVersion() >= 300)
#else
if (CVS->getGLSLVersion() >= 330)
#endif
{
glActiveTexture(GL_TEXTURE0 + m_texture_units[N]);
glBindTexture(m_texture_type[N], tex_id);