mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-04 15:53:00 +00:00
added CAP_GL guards
This commit is contained in:
@@ -1390,6 +1390,7 @@ EX namespace dice {
|
|||||||
|
|
||||||
#if !CAP_EXTFONT
|
#if !CAP_EXTFONT
|
||||||
if(!vid.usingGL) continue;
|
if(!vid.usingGL) continue;
|
||||||
|
#if CAP_GL
|
||||||
pointfunction pf = [&] (ld x, ld y) {
|
pointfunction pf = [&] (ld x, ld y) {
|
||||||
dynamicval<eGeometry> g(geometry, highdim);
|
dynamicval<eGeometry> g(geometry, highdim);
|
||||||
return sphere_to_space(normalize(ctr + cx * x + cy * y));
|
return sphere_to_space(normalize(ctr + cx * x + cy * y));
|
||||||
@@ -1419,6 +1420,7 @@ EX namespace dice {
|
|||||||
write_in_space(V1, max_glfont_size, dw->faces < 10 ? -1.2 : -.75, s, 0xFFFFFFFF, 0, 8, PPR::WALL, pf);
|
write_in_space(V1, max_glfont_size, dw->faces < 10 ? -1.2 : -.75, s, 0xFFFFFFFF, 0, 8, PPR::WALL, pf);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -132,6 +132,7 @@ EX namespace sn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GLuint tabled_inverses::get_texture_id() {
|
GLuint tabled_inverses::get_texture_id() {
|
||||||
|
#if CAP_GL
|
||||||
if(!toload) return texture_id;
|
if(!toload) return texture_id;
|
||||||
|
|
||||||
load();
|
load();
|
||||||
@@ -164,7 +165,8 @@ EX namespace sn {
|
|||||||
// glTexStorage3D(GL_TEXTURE_3D, 1, 34836 /*GL_RGBA32F*/, PRECX, PRECX, PRECZ);
|
// glTexStorage3D(GL_TEXTURE_3D, 1, 34836 /*GL_RGBA32F*/, PRECX, PRECX, PRECZ);
|
||||||
// glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, PRECX, PRECY, PRECZ, GL_RGBA, GL_FLOAT, xbuffer);
|
// glTexSubImage3D(GL_TEXTURE_3D, 0, 0, 0, 0, PRECX, PRECY, PRECZ, GL_RGBA, GL_FLOAT, xbuffer);
|
||||||
#endif
|
#endif
|
||||||
delete[] xbuffer;
|
delete[] xbuffer;
|
||||||
|
#endif
|
||||||
return texture_id;
|
return texture_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user