Skip to content

Commit e55a7de

Browse files
authored
Update entry_points_gles_2_0_autogen.cpp
1 parent 2228adc commit e55a7de

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/libGLESv2/entry_points_gles_2_0_autogen.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4727,6 +4727,12 @@ void GL_APIENTRY GL_TexImage2D(GLenum target,
47274727
GLenum type,
47284728
const void *pixels)
47294729
{
4730+
4731+
if (internalformat == GL_RGB16_SNORM_EXT) {
4732+
if (type == GL_UNSIGNED_BYTE) type = GL_SHORT;
4733+
}
4734+
if (target == 0) target = GL_TEXTURE_2D;
4735+
47304736
ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any());
47314737
Context *context = GetValidGlobalContext();
47324738
ANGLE_UNSAFE_TODO(

0 commit comments

Comments
 (0)