mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-17 18:54:48 +00:00
fixed disable_texture in rug
This commit is contained in:
parent
8223bf354f
commit
aefbe6cdbc
5
rug.cpp
5
rug.cpp
@ -1094,6 +1094,7 @@ EX void drawRugScene() {
|
||||
|
||||
rug.offset_texture = 0;
|
||||
rug.tinf = &tinf;
|
||||
if(disable_texture) rug.tinf = nullptr;
|
||||
rug.flags = POLY_TRIANGLES | POLY_FAT | POLY_PRINTABLE | POLY_ALWAYS_IN | POLY_ISSIDE | POLY_SHADE_TEXTURE;
|
||||
|
||||
dynamicval<projection_configuration> p(pconf, rconf);
|
||||
@ -1129,7 +1130,7 @@ EX void reopen() {
|
||||
ensure_glbuf();
|
||||
if(!glbuf) { rugged = false; return; }
|
||||
rugged = true;
|
||||
if(renderonce) prepareTexture();
|
||||
if(renderonce && !disable_texture) prepareTexture();
|
||||
if(!rugged) return;
|
||||
}
|
||||
|
||||
@ -1274,7 +1275,7 @@ EX ld ruggospeed = 1;
|
||||
EX void actDraw() {
|
||||
try {
|
||||
|
||||
if(!renderonce) prepareTexture();
|
||||
if(!renderonce && !disable_texture) prepareTexture();
|
||||
else if(renderlate) {
|
||||
renderlate--;
|
||||
prepareTexture();
|
||||
|
Loading…
Reference in New Issue
Block a user