Kaydet (Commit) 8378bb31 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix OSX check for GL_EXT_texture_array

For some reason the extension is supported in GL but not in GLSL.

Change-Id: I1cad8baea23e80714269454af23fca87ea9e2949
üst 0b48025b
......@@ -256,8 +256,10 @@ void OpenGL3DRenderer::ShaderResources::LoadShaders()
m_3DBatchVertexID = glGetAttribLocation(m_3DBatchProID, "vertexPositionModelspace");
m_3DBatchNormalID = glGetAttribLocation(m_3DBatchProID, "vertexNormalModelspace");
m_3DBatchColorID = glGetAttribLocation(m_3DBatchProID, "barColor");
#if !defined MACOSX
//check whether the texture array is support
mbTexBatchSupport = GLEW_EXT_texture_array == 1;
#endif
if (mbTexBatchSupport)
{
m_BatchTextProID = OpenGLHelper::LoadShaders("textVertexShaderBatch", "textFragmentShaderBatch");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment