mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
Fixed issue #74 (cont).
This commit is contained in:
parent
771909c988
commit
7c7f406c9e
1 changed files with 4 additions and 4 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue