Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-08-05 04:11:45 +0300
committerMike Erwin <significant.bit@gmail.com>2016-08-05 04:11:45 +0300
commit4571fdde0ecfdebac6a9374364b05be74233aca5 (patch)
treea8c3885dcc14b5ce146468477a1f542123a5094e /source/blender/editors
parent58697444bbb9098d8d497ce40ca246d36c8c87a8 (diff)
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
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c2
1 files changed, 1 insertions, 1 deletions
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);
}