~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/crOpenGL/pack/packspu_pixel.c

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
625
625
            crNetRecv();
626
626
    }
627
627
}
 
628
 
 
629
void PACKSPU_APIENTRY
 
630
packspu_CompressedTexImage1DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width,
 
631
                                GLint border, GLsizei imagesize, const GLvoid *data)
 
632
{
 
633
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
634
    {
 
635
        packspu_ApplyUnpackState();
 
636
    }
 
637
 
 
638
    crPackCompressedTexImage1DARB(target, level, internalformat, width, border, imagesize, data);
 
639
 
 
640
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
641
    {
 
642
        packspu_RestoreUnpackState();
 
643
    }
 
644
}
 
645
 
 
646
void PACKSPU_APIENTRY
 
647
packspu_CompressedTexImage2DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width,
 
648
                                GLsizei height, GLint border, GLsizei imagesize, const GLvoid *data)
 
649
{
 
650
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
651
    {
 
652
        packspu_ApplyUnpackState();
 
653
    }
 
654
 
 
655
    crPackCompressedTexImage2DARB(target, level, internalformat, width, height, border, imagesize, data);
 
656
 
 
657
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
658
    {
 
659
        packspu_RestoreUnpackState();
 
660
    }
 
661
}
 
662
 
 
663
void PACKSPU_APIENTRY
 
664
packspu_CompressedTexImage3DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width,
 
665
                                GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
 
666
{
 
667
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
668
    {
 
669
        packspu_ApplyUnpackState();
 
670
    }
 
671
 
 
672
    crPackCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imagesize, data);
 
673
 
 
674
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
675
    {
 
676
        packspu_RestoreUnpackState();
 
677
    }
 
678
}
 
679
 
 
680
void PACKSPU_APIENTRY
 
681
packspu_CompressedTexSubImage1DARB(GLenum target, GLint level, GLint xoffset, GLsizei width,
 
682
                                   GLenum format, GLsizei imagesize, const GLvoid *data)
 
683
{
 
684
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
685
    {
 
686
        packspu_ApplyUnpackState();
 
687
    }
 
688
 
 
689
    crPackCompressedTexSubImage1DARB(target, level, xoffset, width, format, imagesize, data);
 
690
 
 
691
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
692
    {
 
693
        packspu_RestoreUnpackState();
 
694
    }
 
695
}
 
696
 
 
697
void PACKSPU_APIENTRY
 
698
packspu_CompressedTexSubImage2DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset,
 
699
                                   GLsizei width, GLsizei height, GLenum format, GLsizei imagesize, const GLvoid *data)
 
700
{
 
701
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
702
    {
 
703
        packspu_ApplyUnpackState();
 
704
    }
 
705
 
 
706
    crPackCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imagesize, data);
 
707
 
 
708
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
709
    {
 
710
        packspu_RestoreUnpackState();
 
711
    }
 
712
}
 
713
 
 
714
void PACKSPU_APIENTRY
 
715
packspu_CompressedTexSubImage3DARB(GLenum target, GLint level, GLint xoffset, GLint yoffset,
 
716
                                   GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format,
 
717
                                   GLsizei imagesize, const GLvoid *data)
 
718
{
 
719
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
720
    {
 
721
        packspu_ApplyUnpackState();
 
722
    }
 
723
 
 
724
    crPackCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, data);
 
725
 
 
726
    if (crStateIsBufferBound(GL_PIXEL_UNPACK_BUFFER_ARB))
 
727
    {
 
728
        packspu_RestoreUnpackState();
 
729
    }
 
730
}