mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
gl: Remove GL_R 'format'. There is no GL_R format, it part of the S-T-Q-R enums for texture coordinate space
This commit is contained in:
parent
5a4bea8c4f
commit
521969bcc3
@ -1383,8 +1383,7 @@ namespace gl
|
|||||||
|
|
||||||
enum class internal_format
|
enum class internal_format
|
||||||
{
|
{
|
||||||
red = GL_RED,
|
r = GL_RED,
|
||||||
r = GL_R,
|
|
||||||
rg = GL_RG,
|
rg = GL_RG,
|
||||||
rgb = GL_RGB,
|
rgb = GL_RGB,
|
||||||
rgba = GL_RGBA,
|
rgba = GL_RGBA,
|
||||||
|
@ -100,9 +100,9 @@ namespace gl
|
|||||||
case texture::internal_format::compressed_rgba_s3tc_dxt5:
|
case texture::internal_format::compressed_rgba_s3tc_dxt5:
|
||||||
return std::make_tuple(GL_RGBA, GL_UNSIGNED_BYTE, false);
|
return std::make_tuple(GL_RGBA, GL_UNSIGNED_BYTE, false);
|
||||||
case texture::internal_format::r8:
|
case texture::internal_format::r8:
|
||||||
return std::make_tuple(GL_R, GL_UNSIGNED_BYTE, false);
|
return std::make_tuple(GL_RED, GL_UNSIGNED_BYTE, false);
|
||||||
case texture::internal_format::r32f:
|
case texture::internal_format::r32f:
|
||||||
return std::make_tuple(GL_R, GL_FLOAT, true);
|
return std::make_tuple(GL_RED, GL_FLOAT, true);
|
||||||
case texture::internal_format::r5g6b5:
|
case texture::internal_format::r5g6b5:
|
||||||
return std::make_tuple(GL_RGB, GL_UNSIGNED_SHORT_5_6_5, true);
|
return std::make_tuple(GL_RGB, GL_UNSIGNED_SHORT_5_6_5, true);
|
||||||
case texture::internal_format::rg8:
|
case texture::internal_format::rg8:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user