[Bf-blender-cvs] [018a703] GPencil_EditStrokes: Fix: Doing OpenGL renders of GPencil sketches drawn in sequencer won't show points now
Joshua Leung
noreply at git.blender.org
Sat Nov 29 10:33:44 CET 2014
Commit: 018a7031a14529874679da800afab416c0296a6b
Author: Joshua Leung
Date: Sat Nov 29 18:35:48 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB018a7031a14529874679da800afab416c0296a6b
Fix: Doing OpenGL renders of GPencil sketches drawn in sequencer won't show points now
===================================================================
M source/blender/editors/render/render_opengl.c
===================================================================
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c
index 1ebc7e8..433630f 100644
--- a/source/blender/editors/render/render_opengl.c
+++ b/source/blender/editors/render/render_opengl.c
@@ -186,7 +186,9 @@ static void screen_opengl_render_apply(OGLRender *oglrender)
wmOrtho2(0, sizex, 0, sizey);
glTranslatef(sizex / 2, sizey / 2, 0.0f);
+ G.f |= G_RENDER_OGL;
ED_gpencil_draw_ex(gpd, sizex, sizey, scene->r.cfra);
+ G.f &= ~G_RENDER_OGL;
gp_rect = MEM_mallocN(sizex * sizey * sizeof(unsigned char) * 4, "offscreen rect");
GPU_offscreen_read_pixels(oglrender->ofs, GL_UNSIGNED_BYTE, gp_rect);
More information about the Bf-blender-cvs
mailing list