mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-22 11:09:28 -04:00
Compare commits
1 commit
39ace80a48
...
b3f5cb04c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3f5cb04c2 |
1 changed files with 2 additions and 15 deletions
|
|
@ -666,21 +666,8 @@ void RasterizerOpenGL::SyncTextureUnits(const Framebuffer* framebuffer) {
|
|||
|
||||
// If the texture unit is disabled unbind the corresponding gl unit
|
||||
if (!texture.enabled) {
|
||||
switch (texture.config.type.Value()) {
|
||||
case TextureType::TextureCube:
|
||||
case TextureType::ShadowCube: {
|
||||
state.texture_units[texture_index].texture_2d =
|
||||
res_cache.GetSurface(VideoCore::NULL_SURFACE_CUBE_ID).Handle();
|
||||
state.texture_units[texture_index].target = GL_TEXTURE_CUBE_MAP;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
state.texture_units[texture_index].texture_2d =
|
||||
res_cache.GetSurface(VideoCore::NULL_SURFACE_ID).Handle();
|
||||
state.texture_units[texture_index].target = GL_TEXTURE_2D;
|
||||
break;
|
||||
}
|
||||
}
|
||||
const Surface& null_surface = res_cache.GetSurface(VideoCore::NULL_SURFACE_ID);
|
||||
state.texture_units[texture_index].texture_2d = null_surface.Handle();
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue