Even more conversion, lots of superfluous macro removal
This commit is contained in:
+3
-3
@@ -438,7 +438,7 @@ void D_FlushCaches(void) {
|
||||
static GLuint gl_programs[16];
|
||||
static int gl_num_programs;
|
||||
|
||||
static qboolean GL_CheckShader(GLuint shader) {
|
||||
static bool GL_CheckShader(GLuint shader) {
|
||||
GLint status;
|
||||
GL_GetShaderivFunc(shader, GL_COMPILE_STATUS, &status);
|
||||
|
||||
@@ -455,7 +455,7 @@ static qboolean GL_CheckShader(GLuint shader) {
|
||||
return true;
|
||||
}
|
||||
|
||||
static qboolean GL_CheckProgram(GLuint program) {
|
||||
static bool GL_CheckProgram(GLuint program) {
|
||||
GLint status;
|
||||
GL_GetProgramivFunc(program, GL_LINK_STATUS, &status);
|
||||
|
||||
@@ -539,7 +539,7 @@ GLuint GL_CreateProgram(const GLchar *vertSource, const GLchar *fragSource, int
|
||||
GL_DeleteProgramFunc(program);
|
||||
return 0;
|
||||
} else {
|
||||
if (gl_num_programs == Q_COUNTOF(gl_programs))
|
||||
if (gl_num_programs == std::size(gl_programs))
|
||||
Host_Error("gl_programs overflow");
|
||||
|
||||
gl_programs[gl_num_programs] = program;
|
||||
|
||||
Reference in New Issue
Block a user