Fixed issue #259.

This commit is contained in:
Branimir Karadžić 2015-02-12 08:26:21 -08:00
parent e55bc9f103
commit 4f28cffa1a

View File

@ -3759,7 +3759,9 @@ namespace bgfx
}
}
writeString(&writer, "precision mediump float;\n");
writeStringf(&writer, "precision %s float;\n"
, m_type == GL_FRAGMENT_SHADER ? "mediump" : "highp"
);
bx::write(&writer, code, codeLen);
bx::write(&writer, '\0');