~ubuntu-branches/ubuntu/raring/mesa/raring

« back to all changes in this revision

Viewing changes to src/mesa/main/varray.c

  • Committer: Package Import Robot
  • Author(s): Maarten Lankhorst
  • Date: 2013-01-22 11:54:09 UTC
  • mfrom: (1.7.13)
  • Revision ID: package-import@ubuntu.com-20130122115409-5e9xii2ee1whab3e
Tags: 9.0.2-0ubuntu1
* New upstream release.
* Decrease size of mesa's libgl1-mesa-dri again
  - re-enable 117-static-gallium.patch
  - add 118-dricore-gallium.patch to link against libdricore again

Show diffs side-by-side

added added

removed removed

Lines of Context:
737
737
   ASSERT_OUTSIDE_BEGIN_END(ctx);
738
738
 
739
739
   if (pname == GL_CURRENT_VERTEX_ATTRIB_ARB) {
740
 
      const GLfloat *v =
 
740
      const GLint *v = (const GLint *)
741
741
         get_current_attrib(ctx, index, "glGetVertexAttribIiv");
742
742
      if (v != NULL) {
743
 
         /* XXX we don't have true integer-valued vertex attribs yet */
744
 
         params[0] = (GLint) v[0];
745
 
         params[1] = (GLint) v[1];
746
 
         params[2] = (GLint) v[2];
747
 
         params[3] = (GLint) v[3];
 
743
         COPY_4V(params, v);
748
744
      }
749
745
   }
750
746
   else {
762
758
   ASSERT_OUTSIDE_BEGIN_END(ctx);
763
759
 
764
760
   if (pname == GL_CURRENT_VERTEX_ATTRIB_ARB) {
765
 
      const GLfloat *v =
 
761
      const GLuint *v = (const GLuint *)
766
762
         get_current_attrib(ctx, index, "glGetVertexAttribIuiv");
767
763
      if (v != NULL) {
768
 
         /* XXX we don't have true integer-valued vertex attribs yet */
769
 
         params[0] = (GLuint) v[0];
770
 
         params[1] = (GLuint) v[1];
771
 
         params[2] = (GLuint) v[2];
772
 
         params[3] = (GLuint) v[3];
 
764
         COPY_4V(params, v);
773
765
      }
774
766
   }
775
767
   else {