@@ -356,6 +356,8 @@ static int32_t XNAToGL_TextureFormat[] =
356356 GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Dxt5SrgbEXT */
357357 GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Bc7EXT */
358358 GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Bc7SrgbEXT */
359+ GL_RED , /* SurfaceFormat.NormalizedByteEXT */
360+ GL_RED , /* SurfaceFormat.NormalizedUShortEXT */
359361};
360362
361363static int32_t XNAToGL_TextureInternalFormat [] =
@@ -385,6 +387,8 @@ static int32_t XNAToGL_TextureInternalFormat[] =
385387 GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT , /* SurfaceFormat.Dxt5SrgbEXT */
386388 GL_COMPRESSED_RGBA_BPTC_UNORM_EXT , /* SurfaceFormat.BC7EXT */
387389 GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT ,/* SurfaceFormat.BC7SrgbEXT */
390+ GL_R8 , /* SurfaceFormat.NormalizedByteEXT */
391+ GL_R16 , /* SurfaceFormat.NormalizedUShortEXT */
388392};
389393
390394static int32_t XNAToGL_TextureDataType [] =
@@ -414,6 +418,8 @@ static int32_t XNAToGL_TextureDataType[] =
414418 GL_ZERO , /* NOPE */
415419 GL_ZERO , /* NOPE */
416420 GL_ZERO , /* NOPE */
421+ GL_UNSIGNED_BYTE , /* SurfaceFormat.NormalizedByteEXT */
422+ GL_UNSIGNED_SHORT , /* SurfaceFormat.NormalizedUShortEXT */
417423};
418424
419425static int32_t XNAToGL_BlendMode [] =
0 commit comments