mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-03-29 08:19:52 -04:00
Fixed issue #259.
This commit is contained in:
parent
e55bc9f103
commit
4f28cffa1a
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue