Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
444419fd
Commit
444419fd
authored
Aug 05, 2013
by
Geoff Lang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the rounding of the source lookup in Blit11's copy depth stencil.
TRAC #23669 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent
4150b35b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Blit11.cpp
src/libGLESv2/renderer/Blit11.cpp
+2
-2
No files found.
src/libGLESv2/renderer/Blit11.cpp
View file @
444419fd
...
...
@@ -586,7 +586,7 @@ bool Blit11::copyDepthStencil(ID3D11Resource *source, unsigned int sourceSubreso
for
(
int
y
=
startDestY
;
y
<
endDestY
;
y
++
)
{
float
yPerc
=
static_cast
<
float
>
(
y
-
startDestY
)
/
(
endDestY
-
startDestY
-
1
);
unsigned
int
readRow
=
sourceArea
.
y
+
yPerc
*
sourceArea
.
height
;
unsigned
int
readRow
=
sourceArea
.
y
+
floor
(
yPerc
*
(
sourceArea
.
height
-
1
)
+
0.5
f
)
;
unsigned
int
writeRow
=
y
;
if
(
sourceArea
.
width
==
destArea
.
width
&&
copySize
==
pixelSize
)
...
...
@@ -604,7 +604,7 @@ bool Blit11::copyDepthStencil(ID3D11Resource *source, unsigned int sourceSubreso
for
(
int
x
=
startDestX
;
x
<
endDestX
;
x
++
)
{
float
xPerc
=
static_cast
<
float
>
(
x
-
startDestX
)
/
(
endDestX
-
startDestX
-
1
);
unsigned
int
readColumn
=
sourceArea
.
x
+
xPerc
*
sourceArea
.
width
;
unsigned
int
readColumn
=
sourceArea
.
x
+
floor
(
xPerc
*
(
sourceArea
.
width
-
1
)
+
0.5
f
)
;
unsigned
int
writeColumn
=
x
;
void
*
sourcePixel
=
reinterpret_cast
<
char
*>
(
sourceMapping
.
pData
)
+
...
...
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