From 4571fdde0ecfdebac6a9374364b05be74233aca5 Mon Sep 17 00:00:00 2001 From: Mike Erwin Date: Thu, 4 Aug 2016 21:11:45 -0400 Subject: OpenGL: transition to ARB FBOs, remove runtime checks ARB_framebuffer_object replaces several related EXT extensions. The ARB version pulls GL 3 FBO features into GL 2.1, useful for Mac platform. Its functions and enums have no ARB suffix so transition to modern GL will be seamless! Extension is checked at startup, so is guaranteed to be true at runtime. Part of T49012 --- source/blender/editors/space_view3d/view3d_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index 3fa95315eba..02e60096348 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -1434,7 +1434,7 @@ void view3d_opengl_read_pixels(ARegion *ar, int x, int y, int w, int h, int form if (rv3d->gpuoffscreen) { GPU_offscreen_bind(rv3d->gpuoffscreen, true); - glReadBuffer(GL_COLOR_ATTACHMENT0_EXT); + glReadBuffer(GL_COLOR_ATTACHMENT0); glReadPixels(x, y, w, h, format, type, data); GPU_offscreen_unbind(rv3d->gpuoffscreen, true); } -- cgit v1.2.3