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
196c88cf
Commit
196c88cf
authored
Apr 12, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: 1x1 texures have a power of two size.
parent
1486bdd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
texture.c
dlls/wined3d/texture.c
+1
-3
No files found.
dlls/wined3d/texture.c
View file @
196c88cf
...
...
@@ -965,15 +965,13 @@ static HRESULT texture_init(struct wined3d_texture *texture, UINT width, UINT he
&&
!
(
format
->
id
==
WINED3DFMT_P8_UINT
&&
gl_info
->
supported
[
EXT_PALETTED_TEXTURE
]
&&
wined3d_settings
.
rendertargetlock_mode
==
RTL_READTEX
))
{
if
(
width
!=
1
||
height
!=
1
)
texture
->
flags
&=
~
WINED3D_TEXTURE_POW2_MAT_IDENT
;
texture
->
pow2_matrix
[
0
]
=
(
float
)
width
;
texture
->
pow2_matrix
[
5
]
=
(
float
)
height
;
texture
->
pow2_matrix
[
10
]
=
1
.
0
f
;
texture
->
pow2_matrix
[
15
]
=
1
.
0
f
;
texture
->
target
=
GL_TEXTURE_RECTANGLE_ARB
;
texture
->
flags
|=
WINED3D_TEXTURE_COND_NP2
;
texture
->
flags
&=
~
WINED3D_TEXTURE_POW2_MAT_IDENT
;
if
(
texture
->
resource
.
format
->
flags
&
WINED3DFMT_FLAG_FILTERING
)
texture
->
min_mip_lookup
=
minMipLookup_noMip
;
...
...
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