1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 22:39:53 +00:00

added missing CAP_TEXTURE guard

This commit is contained in:
Zeno Rogue 2019-06-28 09:58:22 +02:00
parent 8aea5eebb4
commit a602dcc593

View File

@ -5947,11 +5947,14 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
}
if(qfi.fshape && wmescher) {
auto& poly = queuepoly(V, cgi.shWall3D[a], darkena(wcol2 - d * get_darkval(a), 0, 0xFF));
#if CAP_TEXTURE
if(texture::config.tstate == texture::tsActive && isize(texture::config.tinf3.tvertices)) {
poly.tinf = &texture::config.tinf3;
poly.offset_texture = 0;
}
else {
else
#endif
{
poly.tinf = &floor_texture_vertices[qfi.fshape->id];
poly.offset_texture = 0;
}