mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-06 13:48:01 +03:00
Use texture for empty textures
This commit is contained in:
+4
-4
@@ -1655,7 +1655,7 @@ namespace rndr {
|
||||
shader_data.g_texcoord_transforms[7] = mat.row1;
|
||||
}
|
||||
else {
|
||||
gl_state_active_bind_texture_2d(5, rctx->empty_texture_2d);
|
||||
gl_state_active_bind_texture_2d(5, rctx->empty_texture_2d->glid);
|
||||
gl_state_bind_sampler(5, rctx->render_samplers[2]);
|
||||
|
||||
shader_data.g_texcoord_transforms[6] = { 1.0f, 0.0f, 0.0f, 0.0f };
|
||||
@@ -1663,9 +1663,9 @@ namespace rndr {
|
||||
}
|
||||
}
|
||||
else {
|
||||
gl_state_active_bind_texture_2d(4, rctx->empty_texture_2d);
|
||||
gl_state_active_bind_texture_2d(4, rctx->empty_texture_2d->glid);
|
||||
gl_state_bind_sampler(4, rctx->render_samplers[2]);
|
||||
gl_state_active_bind_texture_2d(5, rctx->empty_texture_2d);
|
||||
gl_state_active_bind_texture_2d(5, rctx->empty_texture_2d->glid);
|
||||
gl_state_bind_sampler(5, rctx->render_samplers[2]);
|
||||
|
||||
shader_data.g_texcoord_transforms[4] = { 1.0f, 0.0f, 0.0f, 0.0f };
|
||||
@@ -1688,7 +1688,7 @@ namespace rndr {
|
||||
shader_data.g_flare_coef.z = 1.0f;
|
||||
}
|
||||
else {
|
||||
gl_state_active_bind_texture_2d(7, rctx->empty_texture_2d);
|
||||
gl_state_active_bind_texture_2d(7, rctx->empty_texture_2d->glid);
|
||||
gl_state_bind_sampler(7, rctx->render_samplers[2]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user