1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-31 19:36:16 +00:00

fixed texture overlay

This commit is contained in:
Zeno Rogue 2019-11-03 11:00:56 +01:00
parent 8d10336c63
commit d1d8ee07a1

View File

@ -652,7 +652,10 @@ bool newmove = false;
vector<glhr::textured_vertex> rtver(4); vector<glhr::textured_vertex> rtver(4);
void texture_config::drawRawTexture() { void texture_config::drawRawTexture() {
glhr::be_textured(); glflush();
current_display->next_shader_flags = GF_TEXTURE;
dynamicval<eModel> m(pmodel, mdPixel);
current_display->set_all(0);
glhr::color2(0xFFFFFF20); glhr::color2(0xFFFFFF20);
glBindTexture(GL_TEXTURE_2D, config.data.textureid); glBindTexture(GL_TEXTURE_2D, config.data.textureid);
for(int i=0; i<4; i++) { for(int i=0; i<4; i++) {