Gtk: OpenGL: Fix non-PBO output path.

This commit is contained in:
BearOso 2021-05-15 11:22:39 -05:00
parent da4bd2a018
commit cf2d1bf791
3 changed files with 5 additions and 1 deletions

3
.gitmodules vendored
View File

@ -13,3 +13,6 @@
[submodule "shaders/glslang"]
path = shaders/glslang
url = https://github.com/KhronosGroup/glslang.git
[submodule "vulkan/vulkan"]
path = vulkan/vulkan
url = https://github.com/KhronosGroup/Vulkan-Headers.git

View File

@ -174,7 +174,7 @@ void S9xOpenGLDisplayDriver::update(uint16_t *buffer, int width, int height, int
}
else
{
glPixelStorei(GL_UNPACK_ROW_LENGTH, stride_in_pixels * 2);
glPixelStorei(GL_UNPACK_ROW_LENGTH, stride_in_pixels);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, width, height, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, buffer);
}

1
vulkan/vulkan Submodule

@ -0,0 +1 @@
Subproject commit 89d366355e6fe1221c9be40bb2cf3716449e9a7e