projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mesa/glsl: add bitmask to track stages a program was linked against
[mesa.git]
/
src
/
mesa
/
main
/
api_loopback.c
diff --git
a/src/mesa/main/api_loopback.c
b/src/mesa/main/api_loopback.c
index a7fd82c531fcaaba51d8737d3fddc8a177038473..8b63d9c0e95e83ff0d0a9a8b0e304a275cd95403 100644
(file)
--- a/
src/mesa/main/api_loopback.c
+++ b/
src/mesa/main/api_loopback.c
@@
-629,7
+629,10
@@
_mesa_Vertex2sv( const GLshort *v )
void GLAPIENTRY
_mesa_Vertex3dv( const GLdouble *v )
{
void GLAPIENTRY
_mesa_Vertex3dv( const GLdouble *v )
{
- VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
+ if (v[2] == 0.0)
+ VERTEX2( (GLfloat) v[0], (GLfloat) v[1] );
+ else
+ VERTEX3( (GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2] );
}
void GLAPIENTRY
}
void GLAPIENTRY