mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-18 15:00:26 +00:00
fixup guard
This commit is contained in:
parent
2b6b344c15
commit
85683d6688
@ -1808,6 +1808,7 @@ EX void cast() {
|
|||||||
glUniform1f(o->uLevelLines, levellines);
|
glUniform1f(o->uLevelLines, levellines);
|
||||||
if(o->uBinaryWidth != -1)
|
if(o->uBinaryWidth != -1)
|
||||||
glUniform1f(o->uBinaryWidth, vid.binary_width/2 * (nih?1:log(2)));
|
glUniform1f(o->uBinaryWidth, vid.binary_width/2 * (nih?1:log(2)));
|
||||||
|
#if CAP_SOLV
|
||||||
if(o->uStraighten != -1) {
|
if(o->uStraighten != -1) {
|
||||||
glUniformMatrix4fv(o->uStraighten, 1, 0, glhr::tmtogl_transpose(asonov::straighten).as_array());
|
glUniformMatrix4fv(o->uStraighten, 1, 0, glhr::tmtogl_transpose(asonov::straighten).as_array());
|
||||||
}
|
}
|
||||||
@ -1817,6 +1818,7 @@ EX void cast() {
|
|||||||
h = glhr::pointtogl(tangent_length(spin(90*degree) * asonov::tx, 2));
|
h = glhr::pointtogl(tangent_length(spin(90*degree) * asonov::tx, 2));
|
||||||
glUniform4fv(o->uReflectY, 1, &h[0]);
|
glUniform4fv(o->uReflectY, 1, &h[0]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
if(o->uPLevel != -1)
|
if(o->uPLevel != -1)
|
||||||
glUniform1f(o->uPLevel, cgi.plevel / 2);
|
glUniform1f(o->uPLevel, cgi.plevel / 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user