DXGL r221 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r220‎ | r221 | r222 >
Date:23:48, 30 July 2012
Author:admin
Status:new
Tags:
Comment:
Make texture shader demo start working.
Modified paths:
  • /dxgltest/Tests3D.cpp (modified) (history)

Diff [purge]

Index: dxgltest/Tests3D.cpp
@@ -666,7 +666,6 @@
667667 GetClientRect(hWnd,&destrect);
668668 OffsetRect(&destrect,p.x,p.y);
669669 SetRect(&srcrect,0,0,width,height);
670 - ddsd.dwSize = sizeof(DDSURFACEDESC2);
671670 if(ddsurface && ddsrender)error = ddsurface->Blt(&destrect,ddsrender,&srcrect,DDBLT_WAIT,NULL);
672671 }
673672 }
@@ -700,6 +699,7 @@
701700 error = ddinterface->CreateSurface(&ddsd,&ddsurface,NULL);
702701 error = ddinterface->CreateClipper(0,&ddclipper,NULL);
703702 error = ddclipper->SetHWnd(0,hDisplay);
 703+ error = ddsurface->SetClipper(ddclipper);
704704 ZeroMemory(&ddsd,sizeof(DDSURFACEDESC2));
705705 ddsd.dwSize = sizeof(DDSURFACEDESC2);
706706 ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;