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:
authorTon Roosendaal <ton@blender.org>2006-11-07 19:43:44 +0300
committerTon Roosendaal <ton@blender.org>2006-11-07 19:43:44 +0300
commitf3a754136507001f27860513af76811318c4cc94 (patch)
tree3ab23c5660050b99aa639e28612e3b7049c273de /source/blender/src/retopo.c
parent7de24b7ea84c04ad5d056471f3b39d3664b00a77 (diff)
The occosional warning cleanup;
- unused varialbles - unused functions - wrong casted callback for SDL - gcc3 related; (GLint *) for opengl calls.
Diffstat (limited to 'source/blender/src/retopo.c')
-rw-r--r--source/blender/src/retopo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/src/retopo.c b/source/blender/src/retopo.c
index 3d08f0a4e73..164823693a0 100644
--- a/source/blender/src/retopo.c
+++ b/source/blender/src/retopo.c
@@ -421,7 +421,7 @@ void retopo_paint_view_update(struct View3D *v3d)
for(p= l->points.first; p; p= p->next) {
gluProject(p->co[0],p->co[1],p->co[2], v3d->retopo_view_data->modelviewmat,
v3d->retopo_view_data->projectionmat,
- v3d->retopo_view_data->viewport, &ux, &uy, &uz);
+ (GLint *)v3d->retopo_view_data->viewport, &ux, &uy, &uz);
p->loc.x= ux;
p->loc.y= uy;
}
@@ -701,7 +701,7 @@ void retopo_do_2d(View3D *v3d, short proj[2], float *v, char adj)
/* Find the depth of (0,0,0); */
gluProject(0,0,0,v3d->retopo_view_data->modelviewmat,
v3d->retopo_view_data->projectionmat,
- v3d->retopo_view_data->viewport,&px,&py,&pz);
+ (GLint *)v3d->retopo_view_data->viewport,&px,&py,&pz);
depth= pz;
}
else return;
@@ -710,7 +710,7 @@ void retopo_do_2d(View3D *v3d, short proj[2], float *v, char adj)
/* Find 3D location with new depth (unproject) */
gluUnProject(proj[0],proj[1],depth,v3d->retopo_view_data->modelviewmat,
v3d->retopo_view_data->projectionmat,
- v3d->retopo_view_data->viewport,&px,&py,&pz);
+ (GLint *)v3d->retopo_view_data->viewport,&px,&py,&pz);
v[0]= px;
v[1]= py;
@@ -725,7 +725,7 @@ void retopo_do_vert(View3D *v3d, float *v)
/* Find 2D location (project) */
gluProject(v[0],v[1],v[2],v3d->retopo_view_data->modelviewmat,v3d->retopo_view_data->projectionmat,
- v3d->retopo_view_data->viewport,&px,&py,&pz);
+ (GLint *)v3d->retopo_view_data->viewport,&px,&py,&pz);
proj[0]= px;
proj[1]= py;
@@ -799,7 +799,7 @@ void retopo_matrix_update(View3D *v3d)
if(rvd && rvd->queue_matrix_update) {
glGetDoublev(GL_MODELVIEW_MATRIX, rvd->modelviewmat);
glGetDoublev(GL_PROJECTION_MATRIX, rvd->projectionmat);
- glGetIntegerv(GL_VIEWPORT, rvd->viewport);
+ glGetIntegerv(GL_VIEWPORT, (GLint *)rvd->viewport);
rvd->viewport[0]= rvd->viewport[1]= 0;
rvd->queue_matrix_update= 0;