summaryrefslogtreecommitdiffstats
path: root/progs/tests/cva.c
diff options
context:
space:
mode:
authorGareth Hughes <[email protected]>2000-11-03 00:09:31 +0000
committerGareth Hughes <[email protected]>2000-11-03 00:09:31 +0000
commit5f5632c42497f2784fbae23fd3bc11c9e326597a (patch)
tree1ae31727b202ee0db3366cb3216fa457954a3180 /progs/tests/cva.c
parent861eb8eb16b1e6e527e09a2c31d460d955f771db (diff)
Change transformation from ortho to perspective so we get the MGA elt
path by default.
Diffstat (limited to 'progs/tests/cva.c')
-rw-r--r--progs/tests/cva.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/progs/tests/cva.c b/progs/tests/cva.c
index 474f41ae626..380f198563b 100644
--- a/progs/tests/cva.c
+++ b/progs/tests/cva.c
@@ -1,4 +1,4 @@
-/* $Id: cva.c,v 1.1 2000/11/01 03:14:12 gareth Exp $ */
+/* $Id: cva.c,v 1.2 2000/11/03 00:09:31 gareth Exp $ */
/*
* Trivial CVA test, good for testing driver fastpaths (especially
@@ -16,9 +16,9 @@
GLfloat verts[][4] = {
- { 0.25, 0.25, 0.0, 0.0 },
- { 0.75, 0.25, 0.0, 0.0 },
- { 0.25, 0.75, 0.0, 0.0 },
+ { -0.5, -0.5, -2.0, 0.0 },
+ { 0.5, -0.5, -2.0, 0.0 },
+ { -0.5, 0.5, -2.0, 0.0 },
};
GLubyte color[][4] = {
@@ -44,8 +44,9 @@ void init( void )
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
- glOrtho( 0.0, 1.0, 0.0, 1.0, -1.0, 1.0 );
+ glFrustum( -1.0, 1.0, -1.0, 1.0, 2.0, 10.0 );
glMatrixMode( GL_MODELVIEW );
+ glLoadIdentity();
glVertexPointer( 3, GL_FLOAT, sizeof(verts[0]), verts );
glColorPointer( 4, GL_UNSIGNED_BYTE, 0, color );