compile fix for d3d8/device,c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i hope this is the correct fix for my compile problem

Changelog
------------
	compile fix for SuSE 7.3 / gcc-2.95.3-124



--- ../wine/dlls/d3d8/device.c	Thu Jun  5 22:21:13 2003
+++ dlls/d3d8/device.c	Thu Jun  5 22:45:57 2003
@@ -1949,6 +1949,8 @@
     return D3D_OK;
 }
 HRESULT  WINAPI  IDirect3DDevice8Impl_EndScene(LPDIRECT3DDEVICE8 iface) {
+    IDirect3DBaseTexture8* cont = NULL;
+    HRESULT hr;
     ICOM_THIS(IDirect3DDevice8Impl,iface);
     TRACE("(%p)\n", This);
 
@@ -1986,8 +1988,6 @@
 	vcheckGLcall("glReadBuffer");
       }
 
-      IDirect3DBaseTexture8* cont = NULL;
-      HRESULT hr;
       hr = IDirect3DSurface8_GetContainer((LPDIRECT3DSURFACE8) This->renderTarget, &IID_IDirect3DBaseTexture8, (void**) &cont);
       if (SUCCEEDED(hr) && NULL != cont) {
 	/** always dirtify for now. we must find a better way to see that surface have been modified */

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux