Skip to content

Commit 6ed78f8

Browse files
committed
Opengl: Fixing texture caching crash when the software fallback happens
1 parent a393429 commit 6ed78f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/GameSrc/textmaps.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ void load_textures(void) {
252252
// gr_bitmap(cur_bm, 0, 0);
253253
// });
254254
}
255-
opengl_cache_wall_texture(c, n, cur_bm);
255+
if(can_use_opengl())
256+
opengl_cache_wall_texture(c, n, cur_bm);
256257
}
257258
AdvanceProgress();
258259
}

0 commit comments

Comments
 (0)