Fix: Wrong GL data format for RG integer textures

The GPU_RG16I format was assigned a wrong GL data format, which is
probably a typo.

Pull Request: https://projects.blender.org/blender/blender/pulls/141409
This commit is contained in:
Omar Emara
2025-07-08 07:57:33 +02:00
committed by Omar Emara
parent 20ee5c2283
commit 1c98f29ed3

View File

@@ -401,7 +401,6 @@ inline GLenum to_gl_data_format(eGPUTextureFormat format)
return GL_RGBA_INTEGER;
case GPU_RG8:
case GPU_RG32F:
case GPU_RG16I:
case GPU_RG16F:
case GPU_RG16:
return GL_RG;
@@ -409,6 +408,7 @@ inline GLenum to_gl_data_format(eGPUTextureFormat format)
case GPU_RG8I:
case GPU_RG32UI:
case GPU_RG32I:
case GPU_RG16I:
case GPU_RG16UI:
return GL_RG_INTEGER;
case GPU_R8: