Fix crash if glTexParameter was called when no texture bound

This commit is contained in:
Luke Benstead 2018-05-28 07:16:40 +01:00
parent c363a37e30
commit a08ce4a06c

View File

@ -572,6 +572,10 @@ void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) {
TextureObject* active = getBoundTexture();
if(!active) {
return;
}
if(target == GL_TEXTURE_2D) {
switch(pname) {
case GL_TEXTURE_MAG_FILTER: