in check_end_texture_render(), test for presence of a renderbuffer and texobj
This commit is contained in:
@@ -913,8 +913,7 @@ check_end_texture_render(GLcontext *ctx, struct gl_framebuffer *fb)
|
|||||||
GLuint i;
|
GLuint i;
|
||||||
for (i = 0; i < BUFFER_COUNT; i++) {
|
for (i = 0; i < BUFFER_COUNT; i++) {
|
||||||
struct gl_renderbuffer_attachment *att = fb->Attachment + i;
|
struct gl_renderbuffer_attachment *att = fb->Attachment + i;
|
||||||
struct gl_texture_object *texObj = att->Texture;
|
if (att->Texture && att->Renderbuffer) {
|
||||||
if (texObj) {
|
|
||||||
ctx->Driver.FinishRenderTexture(ctx, att);
|
ctx->Driver.FinishRenderTexture(ctx, att);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user