Fix GL regression from D1645

Push/Pop mismatch caused GL_STACK_UNDERFLOW
This commit is contained in:
Campbell Barton
2016-01-11 11:23:18 +11:00
parent 924c626895
commit 24b29873ec

View File

@@ -3316,7 +3316,6 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(
/* bind */
ofs = GPU_offscreen_create(sizex, sizey, full_samples ? 0 : samples, err_out);
if (ofs == NULL) {
glPopAttrib();
return NULL;
}
}
@@ -3442,8 +3441,6 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(
if (own_ofs) {
GPU_offscreen_free(ofs);
glPopAttrib();
}
if (ibuf->rect_float && ibuf->rect)