Enable glBindSampler in GLES
This commit is contained in:
parent
b54c3648b3
commit
d4d5452825
@ -171,7 +171,11 @@ public:
|
|||||||
template<int N, typename... TexIds>
|
template<int N, typename... TexIds>
|
||||||
void setTextureUnitsImpl(GLuint tex_id, TexIds... args)
|
void setTextureUnitsImpl(GLuint tex_id, TexIds... args)
|
||||||
{
|
{
|
||||||
|
#if defined(USE_GLES2)
|
||||||
|
if (CVS->getGLSLVersion() >= 300)
|
||||||
|
#else
|
||||||
if (CVS->getGLSLVersion() >= 330)
|
if (CVS->getGLSLVersion() >= 330)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
glActiveTexture(GL_TEXTURE0 + m_texture_units[N]);
|
glActiveTexture(GL_TEXTURE0 + m_texture_units[N]);
|
||||||
glBindTexture(m_texture_type[N], tex_id);
|
glBindTexture(m_texture_type[N], tex_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user