DXGL r221 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
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 @@
667
667
GetClientRect(hWnd,&destrect);
668
668
OffsetRect(&destrect,p.x,p.y);
669
669
SetRect(&srcrect,0,0,width,height);
670
- ddsd.dwSize = sizeof(DDSURFACEDESC2);
671
670
if(ddsurface && ddsrender)error = ddsurface->Blt(&destrect,ddsrender,&srcrect,DDBLT_WAIT,NULL);
672
671
}
673
672
}
—
—
@@ -700,6 +699,7 @@
701
700
error = ddinterface->CreateSurface(&ddsd,&ddsurface,NULL);
702
701
error = ddinterface->CreateClipper(0,&ddclipper,NULL);
703
702
error = ddclipper->SetHWnd(0,hDisplay);
703
+ error = ddsurface->SetClipper(ddclipper);
704
704
ZeroMemory(&ddsd,sizeof(DDSURFACEDESC2));
705
705
ddsd.dwSize = sizeof(DDSURFACEDESC2);
706
706
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH;
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version