mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 04:46:27 -05:00
gl_texture_cache: Add missing break in CreateTexture
This commit is contained in:
parent
223a535f3f
commit
73b2dc6d4f
1 changed files with 1 additions and 0 deletions
|
@ -209,6 +209,7 @@ OGLTexture CreateTexture(const SurfaceParams& params, GLenum target, GLenum inte
|
||||||
glNamedBufferStorage(texture_buffer.handle, params.width * params.GetBytesPerPixel(),
|
glNamedBufferStorage(texture_buffer.handle, params.width * params.GetBytesPerPixel(),
|
||||||
nullptr, GL_DYNAMIC_STORAGE_BIT);
|
nullptr, GL_DYNAMIC_STORAGE_BIT);
|
||||||
glTextureBuffer(texture.handle, internal_format, texture_buffer.handle);
|
glTextureBuffer(texture.handle, internal_format, texture_buffer.handle);
|
||||||
|
break;
|
||||||
case SurfaceTarget::Texture2D:
|
case SurfaceTarget::Texture2D:
|
||||||
case SurfaceTarget::TextureCubemap:
|
case SurfaceTarget::TextureCubemap:
|
||||||
glTextureStorage2D(texture.handle, params.emulated_levels, internal_format, params.width,
|
glTextureStorage2D(texture.handle, params.emulated_levels, internal_format, params.width,
|
||||||
|
|
Loading…
Reference in a new issue