Changeset 78375 in vbox for trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_framebuffer.c
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_framebuffer.c
r78190 r78375 25 25 packspu_FramebufferTexture1DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) 26 26 { 27 crStateFramebufferTexture1DEXT( target, attachment, textarget, texture, level);27 crStateFramebufferTexture1DEXT(&pack_spu.StateTracker, target, attachment, textarget, texture, level); 28 28 crPackFramebufferTexture1DEXT(target, attachment, textarget, texture, level); 29 29 } … … 32 32 packspu_FramebufferTexture2DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) 33 33 { 34 crStateFramebufferTexture2DEXT( target, attachment, textarget, texture, level);34 crStateFramebufferTexture2DEXT(&pack_spu.StateTracker, target, attachment, textarget, texture, level); 35 35 crPackFramebufferTexture2DEXT(target, attachment, textarget, texture, level); 36 36 } … … 39 39 packspu_FramebufferTexture3DEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) 40 40 { 41 crStateFramebufferTexture3DEXT( target, attachment, textarget, texture, level, zoffset);41 crStateFramebufferTexture3DEXT(&pack_spu.StateTracker, target, attachment, textarget, texture, level, zoffset); 42 42 crPackFramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset); 43 43 } … … 46 46 packspu_BindFramebufferEXT(GLenum target, GLuint framebuffer) 47 47 { 48 crStateBindFramebufferEXT(target, framebuffer);48 crStateBindFramebufferEXT(&pack_spu.StateTracker, target, framebuffer); 49 49 crPackBindFramebufferEXT(target, framebuffer); 50 50 } … … 53 53 packspu_DeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers) 54 54 { 55 crStateDeleteFramebuffersEXT(n, framebuffers);55 crStateDeleteFramebuffersEXT(&pack_spu.StateTracker, n, framebuffers); 56 56 crPackDeleteFramebuffersEXT(n, framebuffers); 57 57 } … … 60 60 packspu_DeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers) 61 61 { 62 crStateDeleteRenderbuffersEXT(n, renderbuffers);62 crStateDeleteRenderbuffersEXT(&pack_spu.StateTracker, n, renderbuffers); 63 63 crPackDeleteRenderbuffersEXT(n, renderbuffers); 64 64 } … … 67 67 packspu_FramebufferRenderbufferEXT(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) 68 68 { 69 crStateFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer);69 crStateFramebufferRenderbufferEXT(&pack_spu.StateTracker, target, attachment, renderbuffertarget, renderbuffer); 70 70 crPackFramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer); 71 71 } … … 74 74 packspu_BindRenderbufferEXT(GLenum target, GLuint renderbuffer) 75 75 { 76 crStateBindRenderbufferEXT( target, renderbuffer);76 crStateBindRenderbufferEXT(&pack_spu.StateTracker, target, renderbuffer); 77 77 crPackBindRenderbufferEXT(target, renderbuffer); 78 78 } … … 81 81 packspu_CheckFramebufferStatusEXT(GLenum target) 82 82 { 83 84 85 GLenum status = crStateCheckFramebufferStatusEXT( target);83 GET_THREAD(thread); 84 int writeback = 1; 85 GLenum status = crStateCheckFramebufferStatusEXT(&pack_spu.StateTracker, target); 86 86 87 87 if (status!=GL_FRAMEBUFFER_UNDEFINED) … … 92 92 crPackCheckFramebufferStatusEXT(target, &status, &writeback); 93 93 94 94 packspuFlush((void *) thread); 95 95 CRPACKSPU_WRITEBACK_WAIT(thread, writeback); 96 96 97 crStateSetFramebufferStatus( target, status);97 crStateSetFramebufferStatus(&pack_spu.StateTracker, target, status); 98 98 return status; 99 99 } … … 112 112 CRPACKSPU_WRITEBACK_WAIT(thread, writeback); 113 113 114 crStateRegFramebuffers( n, framebuffers);114 crStateRegFramebuffers(&pack_spu.StateTracker, n, framebuffers); 115 115 } 116 116 … … 128 128 CRPACKSPU_WRITEBACK_WAIT(thread, writeback); 129 129 130 crStateRegRenderbuffers( n, renderbuffers);130 crStateRegRenderbuffers(&pack_spu.StateTracker, n, renderbuffers); 131 131 }
Note:
See TracChangeset
for help on using the changeset viewer.