added missing CAP_TEXTURE guard

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:08 +02:00
1 parent 8aea5eebb4
commit a602dcc593
1 file changed
+4 -1
+4 -1
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;
}