Various cleanups from @mrneo
This commit is contained in:
parent
c92cdc927c
commit
8f84cbb142
|
@ -1246,7 +1246,7 @@ void APIENTRY glEnableClientState(GLenum cap) {
|
||||||
(ENABLED_VERTEX_ATTRIBUTES |= UV_ENABLED_FLAG);
|
(ENABLED_VERTEX_ATTRIBUTES |= UV_ENABLED_FLAG);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_glKosThrowError(GL_INVALID_ENUM, "glEnableClientState");
|
_glKosThrowError(GL_INVALID_ENUM, __func__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1269,7 +1269,7 @@ void APIENTRY glDisableClientState(GLenum cap) {
|
||||||
(ENABLED_VERTEX_ATTRIBUTES &= ~UV_ENABLED_FLAG);
|
(ENABLED_VERTEX_ATTRIBUTES &= ~UV_ENABLED_FLAG);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_glKosThrowError(GL_INVALID_ENUM, "glDisableClientState");
|
_glKosThrowError(GL_INVALID_ENUM, __func__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ GLboolean _glCalculateAverageTexel(const GLubyte* src, const GLuint srcWidth, co
|
||||||
*d1 = (r << 11 | g << 5 | b);
|
*d1 = (r << 11 | g << 5 | b);
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "ERROR: Unsupported PVR format for mipmap generation");
|
fprintf(stderr, "ERROR: Unsupported PVR format for mipmap generation");
|
||||||
_glKosThrowError(GL_INVALID_OPERATION, "glGenerateMipmapEXT");
|
_glKosThrowError(GL_INVALID_OPERATION, __func__);
|
||||||
_glKosPrintError();
|
_glKosPrintError();
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ static TexturePalette* _initTexturePalette() {
|
||||||
TexturePalette* palette = (TexturePalette*) malloc(sizeof(TexturePalette));
|
TexturePalette* palette = (TexturePalette*) malloc(sizeof(TexturePalette));
|
||||||
assert(palette);
|
assert(palette);
|
||||||
|
|
||||||
memset(palette, 0x0, sizeof(TexturePalette));
|
sq_clr(palette, (sizeof(TexturePalette) & 0xfffffffc) + 4);
|
||||||
palette->bank = -1;
|
palette->bank = -1;
|
||||||
return palette;
|
return palette;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user