mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 04:41:07 +00:00
GL renderbuffers do not have mips, return early from function
* Some of the other sub-functions don't handle non-texture targets
This commit is contained in:
@@ -567,6 +567,10 @@ int GetNumMips(GLenum target, GLuint tex, GLuint w, GLuint h, GLuint d)
|
||||
{
|
||||
int mips = 1;
|
||||
|
||||
// renderbuffers don't have mips
|
||||
if(target == eGL_RENDERBUFFER)
|
||||
return 1;
|
||||
|
||||
GLint immut = 0;
|
||||
GL.glGetTextureParameterivEXT(tex, target, eGL_TEXTURE_IMMUTABLE_FORMAT, &immut);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user