Fixed issue #74 (cont).

This commit is contained in:
bkaradzic 2014-02-13 22:50:52 -08:00
parent 771909c988
commit 7c7f406c9e

View file

@ -1940,7 +1940,7 @@ namespace bgfx
bx::write(&writer, code, codeLen); bx::write(&writer, code, codeLen);
bx::write(&writer, '\0'); bx::write(&writer, '\0');
} }
else if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL == 21) ) else if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL <= 21) )
{ {
bool usesTextureLod = s_extension[Extension::ARB_shader_texture_lod].m_supported bool usesTextureLod = s_extension[Extension::ARB_shader_texture_lod].m_supported
&& bx::findIdentifierMatch(code, s_ARB_shader_texture_lod) && bx::findIdentifierMatch(code, s_ARB_shader_texture_lod)
@ -1953,11 +1953,11 @@ namespace bgfx
{ {
writeString(&writer, "#extension GL_ARB_shader_texture_lod : enable\n"); writeString(&writer, "#extension GL_ARB_shader_texture_lod : enable\n");
} }
}
bx::write(&writer, code, codeLen); bx::write(&writer, code, codeLen);
bx::write(&writer, '\0'); bx::write(&writer, '\0');
} }
}
else if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL >= 31) ) else if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGL >= 31) )
{ {
writeString(&writer, "#version 140\n"); writeString(&writer, "#version 140\n");