diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c
index 2920593..5c829a2 100644
--- a/dlls/wined3d/surface_gdi.c
+++ b/dlls/wined3d/surface_gdi.c
@@ -1505,8 +1505,6 @@ HRESULT WINAPI
 IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
 {
     IWineD3DSurfaceImpl *This = (IWineD3DSurfaceImpl *) iface;
-    HRESULT hr;
-    HDC hdc;
     long oldsize = This->resource.size;
 
     if(This->resource.usage & WINED3DUSAGE_OVERLAY)
@@ -1530,24 +1528,6 @@ IWineGDISurfaceImpl_PrivateSetup(IWineD3DSurface *iface)
     /* Adjust the opengl mem counter */
     globalChangeGlRam(This->resource.size - oldsize);
 
-    /* Call GetDC to create a DIB section. We will use that
-     * DIB section for rendering
-     *
-     * Release the DC afterwards to allow the app to use it
-     */
-    hr = IWineD3DSurface_GetDC(iface, &hdc);
-    if(FAILED(hr))
-    {
-        ERR("(%p) IWineD3DSurface::GetDC failed with hr %08x\n", This, hr);
-        return hr;
-    }
-    hr = IWineD3DSurface_ReleaseDC(iface, hdc);
-    if(FAILED(hr))
-    {
-        ERR("(%p) IWineD3DSurface::ReleaseDC failed with hr %08x\n", This, hr);
-        return hr;
-    }
-
     return WINED3D_OK;
 }
 
