diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 671d1550f..eb25d6a70 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -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');