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
8964336b
Commit
8964336b
authored
Nov 28, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Refuse to create a mipmapped conditional np2 texture.
parent
3fd09166
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/wined3d/device.c
+11
-0
No files found.
dlls/wined3d/device.c
View file @
8964336b
...
...
@@ -876,6 +876,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateTexture(IWineD3DDevice *iface, U
pow2Width
=
pow2Height
=
1
;
while
(
pow2Width
<
Width
)
pow2Width
<<=
1
;
while
(
pow2Height
<
Height
)
pow2Height
<<=
1
;
if
(
pow2Width
!=
Width
||
pow2Height
!=
Height
)
{
if
(
Levels
>
1
)
{
WARN
(
"Attempted to create a mipmapped np2 texture without unconditional np2 support
\n
"
);
HeapFree
(
GetProcessHeap
(),
0
,
object
);
*
ppTexture
=
NULL
;
return
WINED3DERR_INVALIDCALL
;
}
else
{
Levels
=
1
;
}
}
}
/** FIXME: add support for real non-power-two if it's provided by the video card **/
...
...
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