VirtualBox

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


Ignore:
Timestamp:
Aug 24, 2009 2:26:29 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: fix random crashes/memory corruption when running java apps

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/device.c

    r21731 r22415  
    66426642        This->stencilBufferTarget = pNewZStencil;
    66436643        /* should we be calling the parent or the wined3d surface? */
    6644         if (NULL != This->stencilBufferTarget) IWineD3DSurface_AddRef(This->stencilBufferTarget);
    6645         if (NULL != tmp) IWineD3DSurface_Release(tmp);
     6644        if (NULL != This->stencilBufferTarget) {
     6645            IUnknown *pParent;
     6646            IWineD3DSurface_AddRef(This->stencilBufferTarget);
     6647            IWineD3DSurface_GetParent(This->stencilBufferTarget, &pParent);
     6648        }
     6649        if (NULL != tmp) {
     6650            IUnknown *pParent;
     6651            IWineD3DSurface_GetParent(This->stencilBufferTarget, &pParent);
     6652            IUnknown_Release(pParent);
     6653            IUnknown_Release(pParent);
     6654            IWineD3DSurface_Release(tmp);
     6655        }
    66466656        hr = WINED3D_OK;
    66476657
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/surface.c

    r21731 r22415  
    324324     * TODO: Track the current active texture per GL context instead of using glGet
    325325     */
    326     GLint active_texture;
     326    GLint active_texture=GL_TEXTURE0_ARB;
    327327    ENTER_GL();
    328328    glGetIntegerv(GL_ACTIVE_TEXTURE, &active_texture);
Note: See TracChangeset for help on using the changeset viewer.

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