mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-06 03:22:49 +00:00
added missing CAP_TEXTURE guard
This commit is contained in:
parent
8aea5eebb4
commit
a602dcc593
@ -5947,11 +5947,14 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
|
|||||||
}
|
}
|
||||||
if(qfi.fshape && wmescher) {
|
if(qfi.fshape && wmescher) {
|
||||||
auto& poly = queuepoly(V, cgi.shWall3D[a], darkena(wcol2 - d * get_darkval(a), 0, 0xFF));
|
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)) {
|
if(texture::config.tstate == texture::tsActive && isize(texture::config.tinf3.tvertices)) {
|
||||||
poly.tinf = &texture::config.tinf3;
|
poly.tinf = &texture::config.tinf3;
|
||||||
poly.offset_texture = 0;
|
poly.offset_texture = 0;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
poly.tinf = &floor_texture_vertices[qfi.fshape->id];
|
poly.tinf = &floor_texture_vertices[qfi.fshape->id];
|
||||||
poly.offset_texture = 0;
|
poly.offset_texture = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user