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
91afa09a
Commit
91afa09a
authored
Jan 12, 2008
by
Pablo Spallanzani
Committed by
Alexandre Julliard
Jan 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix texture coordinate calculation in surface_blt_to_drawable.
parent
3bf54c29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
surface.c
dlls/wined3d/surface.c
+14
-14
No files found.
dlls/wined3d/surface.c
View file @
91afa09a
...
...
@@ -3540,7 +3540,7 @@ static void WINAPI IWineD3DSurfaceImpl_ModifyLocation(IWineD3DSurface *iface, DW
}
struct
coords
{
in
t
x
,
y
,
z
;
GLfloa
t
x
,
y
,
z
;
};
static
inline
void
surface_blt_to_drawable
(
IWineD3DSurfaceImpl
*
This
,
const
RECT
*
rect_in
)
{
...
...
@@ -3599,22 +3599,22 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_MIN_FILTER
,
GL_NEAREST
);
checkGLcall
(
"glTexParameteri"
);
coords
[
0
].
x
=
rect
.
left
/
This
->
pow2Width
;
coords
[
0
].
x
=
(
float
)
rect
.
left
/
This
->
pow2Width
;
coords
[
0
].
z
=
0
;
coords
[
1
].
x
=
rect
.
left
/
This
->
pow2Width
;
coords
[
1
].
x
=
(
float
)
rect
.
left
/
This
->
pow2Width
;
coords
[
1
].
z
=
0
;
coords
[
2
].
x
=
rect
.
right
/
This
->
pow2Width
;
coords
[
2
].
x
=
(
float
)
rect
.
right
/
This
->
pow2Width
;
coords
[
2
].
z
=
0
;
coords
[
3
].
x
=
rect
.
right
/
This
->
pow2Width
;
coords
[
3
].
x
=
(
float
)
rect
.
right
/
This
->
pow2Width
;
coords
[
3
].
z
=
0
;
coords
[
0
].
y
=
rect
.
top
/
This
->
pow2Height
;
coords
[
1
].
y
=
rect
.
bottom
/
This
->
pow2Height
;
coords
[
2
].
y
=
rect
.
bottom
/
This
->
pow2Height
;
coords
[
3
].
y
=
rect
.
top
/
This
->
pow2Height
;
coords
[
0
].
y
=
(
float
)
rect
.
top
/
This
->
pow2Height
;
coords
[
1
].
y
=
(
float
)
rect
.
bottom
/
This
->
pow2Height
;
coords
[
2
].
y
=
(
float
)
rect
.
bottom
/
This
->
pow2Height
;
coords
[
3
].
y
=
(
float
)
rect
.
top
/
This
->
pow2Height
;
}
else
{
/* Must be a cube map */
glEnable
(
GL_TEXTURE_CUBE_MAP_ARB
);
...
...
@@ -3676,16 +3676,16 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
}
glBegin
(
GL_QUADS
);
glTexCoord3
iv
((
GLint
*
)
&
coords
[
0
]
);
glTexCoord3
fv
(
&
coords
[
0
].
x
);
glVertex2i
(
rect
.
left
,
device
->
render_offscreen
?
rect
.
bottom
:
rect
.
top
);
glTexCoord3
iv
((
GLint
*
)
&
coords
[
1
]
);
glVertex2i
(
0
,
device
->
render_offscreen
?
rect
.
top
:
rect
.
bottom
);
glTexCoord3
fv
(
&
coords
[
1
].
x
);
glVertex2i
(
rect
.
left
,
device
->
render_offscreen
?
rect
.
top
:
rect
.
bottom
);
glTexCoord3
iv
((
GLint
*
)
&
coords
[
2
]
);
glTexCoord3
fv
(
&
coords
[
2
].
x
);
glVertex2i
(
rect
.
right
,
device
->
render_offscreen
?
rect
.
top
:
rect
.
bottom
);
glTexCoord3
iv
((
GLint
*
)
&
coords
[
3
]
);
glTexCoord3
fv
(
&
coords
[
3
].
x
);
glVertex2i
(
rect
.
right
,
device
->
render_offscreen
?
rect
.
bottom
:
rect
.
top
);
glEnd
();
checkGLcall
(
"glEnd"
);
...
...
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