-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vinson Lee wrote:
> I believe there's a bug in the piglit vbo-map-remap.c test. The test fails 
> for me with a GL_INVALID_ENUM error that comes from 
> glEnable(GL_VERTEX_ARRAY). GL_VERTEX_ARRAY is a client-side capability so the 
> error seems valid.
> 
> tests/general/vbo-map-remap.c
>     42        static void
>     43        init()
>     44        {
>     45        
>     46                glewInit();
>     47                glMatrixMode(GL_PROJECTION);
>     48                glPushMatrix();
>     49                glLoadIdentity();
>     50                glOrtho(0, 400, 0, 300, -1, 1);
>     51        
>     52                glMatrixMode(GL_MODELVIEW);
>     53                glPushMatrix();
>     54                glLoadIdentity();
>     55        
> ->  56                glEnable(GL_VERTEX_ARRAY);
>     57        
>     58                glGenBuffersARB(1, &vbo);
>     59                glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbo);
>     60                glBufferDataARB(GL_ARRAY_BUFFER_ARB, 12 * 
> sizeof(GLfloat),
>     61                                NULL, GL_DYNAMIC_DRAW);
>     62        }
> 
> 
> If I remove the glEnable line, the test passes for me.

Right.  It should be glEnableClientState.  Separation of client and
server state for the win.  Just removing the enable completely disables
the use of vertex arrays, which defeats the point of the test.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpSInwACgkQX1gOwKyEAw+6ngCeNeW6dNJhO4kY9I24a6BFJHuo
SlMAnilBGJ76fwUC9m5mxoSS9BE7RYMB
=X9Xf
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to