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
67436f9d
Commit
67436f9d
authored
Oct 05, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Correctly name a variable.
parent
385a8da4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
surface.c
dlls/wined3d/surface.c
+8
-8
No files found.
dlls/wined3d/surface.c
View file @
67436f9d
...
...
@@ -1796,7 +1796,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
GLenum
format
,
internal
,
type
;
CONVERT_TYPES
convert
;
int
bpp
;
int
pitc
h
;
int
widt
h
;
BYTE
*
mem
;
if
(
This
->
Flags
&
SFLAG_INTEXTURE
)
{
...
...
@@ -1879,21 +1879,21 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
d3dfmt_get_conv
(
This
,
TRUE
/* We need color keying */
,
TRUE
/* We will use textures */
,
&
format
,
&
internal
,
&
type
,
&
convert
,
&
bpp
);
/* The
pitc
h is in 'length' not in bytes */
/* The
widt
h is in 'length' not in bytes */
if
(
NP2_REPACK
==
wined3d_settings
.
nonpower2_mode
||
This
->
resource
.
usage
&
WINED3DUSAGE_RENDERTARGET
)
pitc
h
=
This
->
currentDesc
.
Width
;
widt
h
=
This
->
currentDesc
.
Width
;
else
pitc
h
=
This
->
pow2Width
;
widt
h
=
This
->
pow2Width
;
if
((
convert
!=
NO_CONVERSION
)
&&
This
->
resource
.
allocatedMemory
)
{
int
height
=
This
->
glRect
.
bottom
-
This
->
glRect
.
top
;
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
pitc
h
*
height
*
bpp
);
mem
=
HeapAlloc
(
GetProcessHeap
(),
0
,
widt
h
*
height
*
bpp
);
if
(
!
mem
)
{
ERR
(
"Out of memory %d, %d!
\n
"
,
pitc
h
,
height
);
ERR
(
"Out of memory %d, %d!
\n
"
,
widt
h
,
height
);
return
WINED3DERR_OUTOFVIDEOMEMORY
;
}
d3dfmt_convert_surface
(
This
->
resource
.
allocatedMemory
,
mem
,
pitc
h
*
height
,
convert
,
This
);
d3dfmt_convert_surface
(
This
->
resource
.
allocatedMemory
,
mem
,
widt
h
*
height
,
convert
,
This
);
This
->
Flags
|=
SFLAG_CONVERTED
;
}
else
if
(
This
->
resource
.
format
==
WINED3DFMT_P8
&&
GL_SUPPORT
(
EXT_PALETTED_TEXTURE
))
{
...
...
@@ -1906,7 +1906,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LoadTexture(IWineD3DSurface *iface) {
}
/* Make sure the correct pitch is used */
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
pitc
h
);
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
widt
h
);
if
(
NP2_REPACK
==
wined3d_settings
.
nonpower2_mode
&&
(
This
->
Flags
&
SFLAG_NONPOW2
)
&&
!
(
This
->
Flags
&
SFLAG_OVERSIZE
))
{
TRACE
(
"non power of two support
\n
"
);
...
...
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