[Fix] (gl.h|doc.cpp): Fix the wrong operations that make all "Depth" into "Common".

This commit is contained in:
BZLZHH
2025-04-04 10:55:35 +08:00
parent d64eb04dd5
commit 4f2e3f97be
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -255,7 +255,7 @@ typedef double GLclampd; /* double precision float in [0,1] */
#define GL_LIST_INDEX 0x0B33
#define GL_LIST_MODE 0x0B30
/* Common buffer */
/* Depth buffer */
#define GL_NEVER 0x0200
#define GL_LESS 0x0201
#define GL_EQUAL 0x0202
@@ -833,7 +833,7 @@ GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
/*
* Common Buffer
* Depth buffer
*/
GLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
+2 -2
View File
@@ -591,7 +591,7 @@ const char* ImageChannelOrderString(int format)
case 10: return "Rx";
case 11: return "RGx";
case 12: return "RGBx";
case 13: return "Common";
case 13: return "Depth";
case 14: return "DepthStencil";
case 15: return "sRGB";
case 16: return "sRGBx";
@@ -1885,7 +1885,7 @@ void Parameterize()
InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'");
InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, "");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Common'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'");
InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'");