VirtualBox

Changeset 38772 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 16, 2011 8:13:14 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
74061
Message:

crOpenGL: fix PBOs with compressed tex images

Location:
trunk/src/VBox/Additions/common/crOpenGL/pack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_pixel.c

    r38298 r38772  
    626626    }
    627627}
     628
     629void PACKSPU_APIENTRY
     630packspu_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
     646void PACKSPU_APIENTRY
     647packspu_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
     663void PACKSPU_APIENTRY
     664packspu_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
     680void PACKSPU_APIENTRY
     681packspu_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
     697void PACKSPU_APIENTRY
     698packspu_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
     714void PACKSPU_APIENTRY
     715packspu_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}
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special

    r37760 r38772  
    108108VBoxPackDetachThread
    109109ChromiumParameteriCR
     110CompressedTexImage1DARB
     111CompressedTexImage2DARB
     112CompressedTexImage3DARB
     113CompressedTexSubImage1DARB
     114CompressedTexSubImage2DARB
     115CompressedTexSubImage3DARB
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette