Revision: 38309
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38309
Author:   psy-fi
Date:     2011-07-11 16:26:29 +0000 (Mon, 11 Jul 2011)
Log Message:
-----------
compile fixes

Modified Paths:
--------------
    branches/soc-2011-salad/source/blender/blenkernel/intern/cdderivedmesh.c
    branches/soc-2011-salad/source/blender/gpu/GPU_buffers.h

Property Changed:
----------------
    branches/soc-2011-salad/


Property changes on: branches/soc-2011-salad
___________________________________________________________________
Modified: svn:mergeinfo
   - /branches/soc-2010-jwilkins:28499-37009
/branches/soc-2010-nicolasbishop:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282
/branches/soc-2011-cucumber:36829-36994
/branches/soc-2011-onion:36833-37529
/branches/soc-2011-pepper:36830-38208
/branches/soc-2011-tomato:36831-38239
/trunk/blender:36834-38307
   + /branches/soc-2010-jwilkins:28499-37009
/branches/soc-2010-nicolasbishop:28448-30783,30792-30793,30797-30798,30815
/branches/soc-2011-carrot:36854,37548,37564,37602,37622,37848,38043,38064,38226,38231,38282
/branches/soc-2011-cucumber:36829-36994
/branches/soc-2011-onion:36833-37529
/branches/soc-2011-pepper:36830-38208
/branches/soc-2011-tomato:36831-38239
/trunk/blender:36834-38308

Modified: 
branches/soc-2011-salad/source/blender/blenkernel/intern/cdderivedmesh.c
===================================================================
--- branches/soc-2011-salad/source/blender/blenkernel/intern/cdderivedmesh.c    
2011-07-11 14:27:44 UTC (rev 38308)
+++ branches/soc-2011-salad/source/blender/blenkernel/intern/cdderivedmesh.c    
2011-07-11 16:26:29 UTC (rev 38309)
@@ -307,8 +307,8 @@
        else {  /* use OpenGL VBOs or Vertex Arrays instead for better, faster 
rendering */
                GPU_vertex_setup(dm);
                if( !GPU_buffer_legacy(dm) ) {
-                       if(dm->drawObject->nelements)   
glDrawArrays(GL_POINTS,0, dm->drawObject->nelements);
-                       else                                                    
glDrawArrays(GL_POINTS,0, dm->drawObject->nlooseverts);
+                       if(dm->drawObject->tot_triangle_point)  
glDrawArrays(GL_POINTS,0, dm->drawObject->tot_triangle_point);
+                       else                                                    
glDrawArrays(GL_POINTS,0, dm->drawObject->tot_loose_point);
                }
                GPU_buffer_unbind();
        }

Modified: branches/soc-2011-salad/source/blender/gpu/GPU_buffers.h
===================================================================
--- branches/soc-2011-salad/source/blender/gpu/GPU_buffers.h    2011-07-11 
14:27:44 UTC (rev 38308)
+++ branches/soc-2011-salad/source/blender/gpu/GPU_buffers.h    2011-07-11 
16:26:29 UTC (rev 38309)
@@ -197,18 +197,4 @@
 /* used to check whether to use the old (without buffers) code */
 int GPU_buffer_legacy( struct DerivedMesh *dm );
 
-/* Buffers for non-DerivedMesh drawing */
-void *GPU_build_mesh_buffers(struct GHash *map, struct MVert *mvert,
-                       struct MFace *mface, int *face_indices,
-                       int totface, int *vert_indices, int uniq_verts,
-                       int totvert);
-void GPU_update_mesh_buffers(void *buffers, struct MVert *mvert,
-                       int *vert_indices, int totvert);
-void *GPU_build_grid_buffers(struct DMGridData **grids,
-       int *grid_indices, int totgrid, int gridsize);
-void GPU_update_grid_buffers(void *buffers_v, struct DMGridData **grids,
-       int *grid_indices, int totgrid, int gridsize, int smooth);
-void GPU_draw_buffers(void *buffers);
-void GPU_free_buffers(void *buffers);
-
 #endif

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to