[Bf-blender-cvs] [8dbc12864e0] soc-2018-npr: Modify code to standard api and style

Nick Wu noreply at git.blender.org
Mon Jul 16 03:29:08 CEST 2018


Commit: 8dbc12864e005f35da146ba7ceb54237286ee5c5
Author: Nick Wu
Date:   Fri Jul 13 23:05:16 2018 +0800
Branches: soc-2018-npr
https://developer.blender.org/rB8dbc12864e005f35da146ba7ceb54237286ee5c5

Modify code to standard api and style

===================================================================

M	source/blender/draw/engines/lanpr/lanpr_dpix.c

===================================================================

diff --git a/source/blender/draw/engines/lanpr/lanpr_dpix.c b/source/blender/draw/engines/lanpr/lanpr_dpix.c
index 2812af9e3d5..416582ab8e4 100644
--- a/source/blender/draw/engines/lanpr/lanpr_dpix.c
+++ b/source/blender/draw/engines/lanpr/lanpr_dpix.c
@@ -392,8 +392,8 @@ void lanpr_dpix_draw_scene(LANPR_TextureList *txl, LANPR_FramebufferList *fbl, L
 	pd->dpix_znear = camera ? ((Camera *)camera->data)->clipsta : v3d->near;
 	pd->dpix_zfar = camera ? ((Camera *)camera->data)->clipend : v3d->far;
 
-	glPointSize(1);
-	glLineWidth(2);
+	GPU_point_size(1);
+	GPU_line_width(2);
 	GPU_framebuffer_bind(fbl->dpix_transform);
 	DRW_draw_pass(psl->dpix_transform_pass);



More information about the Bf-blender-cvs mailing list