Skip to content

Commit 8a06ea6

Browse files
committed
tr_image: document the GL_RGB format
1 parent 7381f8f commit 8a06ea6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/engine/renderer/tr_backend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ static GLint GL_ToSRGB( GLint internalFormat, bool isSRGB )
745745
case GL_R8:
746746
ASSERT( glConfig.textureSrgbR8Available );
747747
return GL_SR8_EXT;
748-
case GL_RG:
748+
case GL_RG8:
749749
ASSERT( glConfig.textureSrgbRG8Available );
750750
return GL_SRG8_EXT;
751751
case GL_RGB:

src/engine/renderer/tr_image.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class ListImagesCmd : public Cmd::StaticCmd
163163
"If internalformat is specified as a base internal format, the GL stores the resulting texture with
164164
internal component resolutions of its own choosing, referred to as the effective internal format."
165165
Use 4 bytes as an estimate: */
166+
{ GL_RGB, { "RGB", 3 } },
166167
{ GL_RGBA, { "RGBA", 4 } },
167168
{ GL_RED, { "RED", 1 } },
168169

0 commit comments

Comments
 (0)