Changeset 38217 in vbox for trunk/src/VBox
- Timestamp:
- Jul 28, 2011 12:44:58 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/surface.c
r38112 r38217 889 889 890 890 #ifdef VBOX_WITH_WDDM 891 static void surface_upload_data_rect(IWineD3DSurfaceImpl *This, const struct wined3d_gl_info *gl_info,891 static void surface_upload_data_rect(IWineD3DSurfaceImpl *This, IWineD3DSurfaceImpl *Src, const struct wined3d_gl_info *gl_info, 892 892 const struct wined3d_format_desc *format_desc, BOOL srgb, const GLvoid *data, RECT *pRect) 893 893 { … … 919 919 ENTER_GL(); 920 920 921 if ( This->Flags & SFLAG_PBO)922 { 923 GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, This->pbo));921 if (Src->Flags & SFLAG_PBO) 922 { 923 GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, Src->pbo)); 924 924 checkGLcall("glBindBufferARB"); 925 925 926 TRACE("(%p) pbo: %#x, data: %p.\n", This, This->pbo, data);927 data = NULL;926 TRACE("(%p) pbo: %#x, data: %p.\n", Src, Src->pbo, data); 927 /* the data should contain a zero-based offset */ 928 928 } 929 929 … … 945 945 } 946 946 947 if ( This->Flags & SFLAG_PBO)947 if (Src->Flags & SFLAG_PBO) 948 948 { 949 949 GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, 0)); … … 4179 4179 LEAVE_GL(); 4180 4180 4181 if (mem || (This->Flags & SFLAG_PBO))4182 surface_upload_data_rect(This, gl_info, &desc, srgb, updateMem, &dst_rect);4181 Assert(!!mem == !(Src->Flags & SFLAG_PBO)); 4182 surface_upload_data_rect(This, Src, gl_info, &desc, srgb, updateMem, &dst_rect); 4183 4183 4184 4184 /* Restore the default pitch */
Note:
See TracChangeset
for help on using the changeset viewer.