1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

fixed a possible crash with airbuf missing

This commit is contained in:
Zeno Rogue 2020-09-11 11:18:51 +02:00
parent d9e6b254cc
commit 3311809e01

View File

@ -416,7 +416,7 @@ void display_data::set_projection(int ed, ld shift) {
#endif #endif
#if MAXMDIM >= 4 #if MAXMDIM >= 4
if(selected->tAirMap != -1) { if(selected->tAirMap != -1 && airbuf) {
glActiveTexture(GL_TEXTURE0 + AIR_BINDING); glActiveTexture(GL_TEXTURE0 + AIR_BINDING);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);