[Bf-blender-cvs] [3d8f4fedd0] blender2.8: Clay Engine: fix format (3D instead of 2D)

Clément Foucault noreply at git.blender.org
Fri Feb 24 01:29:03 CET 2017


Commit: 3d8f4fedd045baa38f44dea70e508f6395958d99
Author: Clément Foucault
Date:   Wed Feb 22 19:58:55 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB3d8f4fedd045baa38f44dea70e508f6395958d99

Clay Engine: fix format (3D instead of 2D)

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

M	source/blender/draw/intern/draw_cache.c

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

diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 4f9b4926fb..3feb480c40 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -229,11 +229,11 @@ Batch *DRW_cache_fullscreen_quad_get(void)
 		float v3[2] = {-1.0f,  1.0f};
 		float v4[2] = { 1.0f,  1.0f};
 
-		/* Position Only 3D format */
+		/* Position Only 2D format */
 		static VertexFormat format = { 0 };
 		static unsigned pos_id;
 		if (format.attrib_ct == 0) {
-			pos_id = add_attrib(&format, "pos", GL_FLOAT, 3, KEEP_FLOAT);
+			pos_id = add_attrib(&format, "pos", GL_FLOAT, 2, KEEP_FLOAT);
 		}
 
 		VertexBuffer *vbo = VertexBuffer_create_with_format(&format);




More information about the Bf-blender-cvs mailing list