Browse Source

fix intel 810 bug, remove DDS 3DDEVICE cap bit which was incorrectly specified

cxgeorge 25 years ago
parent
commit
235eea1bfa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      panda/src/dxgsg/dxTextureContext.cxx

+ 2 - 2
panda/src/dxgsg/dxTextureContext.cxx

@@ -1397,10 +1397,10 @@ CreateTexture(LPDIRECT3DDEVICE7 pd3dDevice, int cNumTexPixFmts, LPDDPIXELFORMAT
 	pddsRender->GetDDInterface( (VOID**)&pDD );
 	pddsRender->GetDDInterface( (VOID**)&pDD );
 	pddsRender->Release();
 	pddsRender->Release();
 
 
-	ddsd.ddsCaps.dwCaps  = DDSCAPS_TEXTURE | DDSCAPS_3DDEVICE;
+	ddsd.ddsCaps.dwCaps  = DDSCAPS_TEXTURE;
 
 
 	ddsd.ddsCaps.dwCaps2 = DDSCAPS2_TEXTUREMANAGE  // Turn on texture management 
 	ddsd.ddsCaps.dwCaps2 = DDSCAPS2_TEXTUREMANAGE  // Turn on texture management 
-						   | DDSCAPS2_HINTSTATIC;	 // BUGBUG:  is this ok for ALL textures?
+						   | DDSCAPS2_HINTSTATIC;  // BUGBUG:  is this ok for ALL textures?
 
 
 	// validate magfilter setting
 	// validate magfilter setting
 	// degrade filtering if no HW support
 	// degrade filtering if no HW support