Skip to content

Commit

Permalink
renderer/gl: fix bcn compressed size in upload_texture_impl
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Aug 8, 2024
1 parent 5416318 commit 3f62275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vita3k/renderer/src/gl/texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void GLTextureCache::upload_texture_impl(SceGxmTextureBaseFormat base_format, ui
glPixelStorei(GL_UNPACK_COMPRESSED_BLOCK_HEIGHT, 4);

const GLenum format = translate_format(base_format);
size_t compressed_size = renderer::texture::get_compressed_size(base_format, pixels_per_stride, height);
size_t compressed_size = renderer::texture::get_compressed_size(base_format, width, height);
glCompressedTexSubImage2D(upload_type, mip_index, 0, 0, width, height, format, static_cast<GLsizei>(compressed_size), pixels);

glPixelStorei(GL_UNPACK_COMPRESSED_BLOCK_SIZE, 0);
Expand Down

0 comments on commit 3f62275

Please sign in to comment.