mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 20:07:40 +00:00
added CAP_GL guards
This commit is contained in:
@@ -132,6 +132,7 @@ EX namespace sn {
|
||||
}
|
||||
|
||||
GLuint tabled_inverses::get_texture_id() {
|
||||
#if CAP_GL
|
||||
if(!toload) return texture_id;
|
||||
|
||||
load();
|
||||
@@ -164,7 +165,8 @@ EX namespace sn {
|
||||
// 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);
|
||||
#endif
|
||||
delete[] xbuffer;
|
||||
delete[] xbuffer;
|
||||
#endif
|
||||
return texture_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user