@@ -356,6 +356,8 @@ static int32_t XNAToGL_TextureFormat[] =
356
356
GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Dxt5SrgbEXT */
357
357
GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Bc7EXT */
358
358
GL_COMPRESSED_TEXTURE_FORMATS , /* SurfaceFormat.Bc7SrgbEXT */
359
+ GL_RED , /* SurfaceFormat.NormalizedByteEXT */
360
+ GL_RED , /* SurfaceFormat.NormalizedUShortEXT */
359
361
};
360
362
361
363
static int32_t XNAToGL_TextureInternalFormat [] =
@@ -385,6 +387,8 @@ static int32_t XNAToGL_TextureInternalFormat[] =
385
387
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT , /* SurfaceFormat.Dxt5SrgbEXT */
386
388
GL_COMPRESSED_RGBA_BPTC_UNORM_EXT , /* SurfaceFormat.BC7EXT */
387
389
GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT ,/* SurfaceFormat.BC7SrgbEXT */
390
+ GL_R8 , /* SurfaceFormat.NormalizedByteEXT */
391
+ GL_R16 , /* SurfaceFormat.NormalizedUShortEXT */
388
392
};
389
393
390
394
static int32_t XNAToGL_TextureDataType [] =
@@ -414,6 +418,8 @@ static int32_t XNAToGL_TextureDataType[] =
414
418
GL_ZERO , /* NOPE */
415
419
GL_ZERO , /* NOPE */
416
420
GL_ZERO , /* NOPE */
421
+ GL_UNSIGNED_BYTE , /* SurfaceFormat.NormalizedByteEXT */
422
+ GL_UNSIGNED_SHORT , /* SurfaceFormat.NormalizedUShortEXT */
417
423
};
418
424
419
425
static int32_t XNAToGL_BlendMode [] =
0 commit comments