GLES3: Fixed issue #259.

This commit is contained in:
Branimir Karadžić 2018-02-25 08:00:51 -08:00
parent a23933da9a
commit 6ec06fadfc

View File

@ -5958,9 +5958,10 @@ namespace bgfx { namespace gl
{
if (BX_ENABLED(BGFX_CONFIG_RENDERER_OPENGLES >= 30) )
{
writeString(&writer
writeStringf(&writer
, "#version 300 es\n"
"precision mediump float;\n"
"precision %s float;\n"
, m_type == GL_FRAGMENT_SHADER ? "mediump" : "highp"
);
}
else