Fixed sampling of shadows

This commit is contained in:
korenkonder
2024-05-10 21:54:07 +03:00
parent c1197d9852
commit 90987b1352
3 changed files with 5 additions and 5 deletions
+3 -1
View File
@@ -376,8 +376,10 @@ void texture_params_get(GLuint tex_0, texture_param* tex_0_param,
void texture_params_restore(texture_param* tex_0_param,
texture_param* tex_1_param, texture_param* tex_2_param) {
for (int32_t i = 0; i < 4; i++)
for (int32_t i = 0; i < 4; i++) {
gl_state_active_bind_texture_2d(i, 0);
gl_state_bind_sampler(i, 0);
}
}
bool texture_txp_set_load(txp_set* t, texture*** texs, uint32_t* ids) {