diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 12d46942d..497b1b08a 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -1916,7 +1916,7 @@ void GL_UpdateTexture(GLMipmap_t *pTexInfo) // However, it does need to be copied to a buffer for generating mipmaps and padding if (MipMap || applyPadding) { - AllocTextureBuffer(pTexInfo); + GL_AllocTextureBuffer(pTexInfo); tex = textureBuffer; memcpy(tex, ptex, w * h * 4); ptex = tex;