Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2cdbd9a5
Commit
2cdbd9a5
authored
Mar 20, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 21, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Store the pixel format in the texture.
parent
ede01abe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
device.c
dlls/wined3d/device.c
+4
-0
No files found.
dlls/wined3d/device.c
View file @
2cdbd9a5
...
...
@@ -823,6 +823,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, U
object
->
pow2scalingFactorY
=
(((
float
)
Height
)
/
((
float
)
pow2Height
));
TRACE
(
" xf(%f) yf(%f)
\n
"
,
object
->
pow2scalingFactorX
,
object
->
pow2scalingFactorY
);
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
TRACE
(
"calculating levels %d
\n
"
,
object
->
baseTexture
.
levels
);
...
...
@@ -896,6 +898,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
object
->
width
=
Width
;
object
->
height
=
Height
;
object
->
depth
=
Depth
;
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
...
...
@@ -1011,6 +1014,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
/* TODO: support for native non-power 2 */
/* Precalculated scaling for 'faked' non power of two texture coords */
object
->
pow2scalingFactor
=
((
float
)
EdgeLength
)
/
((
float
)
pow2EdgeLength
);
object
->
baseTexture
.
format
=
Format
;
/* Calculate levels for mip mapping */
if
(
Levels
==
0
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment