Fixed issue #259.
This commit is contained in:
parent
e55bc9f103
commit
4f28cffa1a
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user