in check_end_texture_render(), test for presence of a renderbuffer and texobj

This commit is contained in:
Brian
2007-11-08 09:14:43 -07:00
parent e2593bb163
commit 98c539d337

View File

@@ -913,8 +913,7 @@ check_end_texture_render(GLcontext *ctx, struct gl_framebuffer *fb)
GLuint i;
for (i = 0; i < BUFFER_COUNT; i++) {
struct gl_renderbuffer_attachment *att = fb->Attachment + i;
struct gl_texture_object *texObj = att->Texture;
if (texObj) {
if (att->Texture && att->Renderbuffer) {
ctx->Driver.FinishRenderTexture(ctx, att);
}
}