Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
melonDS
Commits
8c7b7e23
Commit
8c7b7e23
authored
Mar 04, 2017
by
StapleButter
Browse files
temp. hack preventing evil out-of-bounds write
parent
f8770dc8
Changes
4
Hide whitespace changes
Inline
Side-by-side
GPU3D.cpp
View file @
8c7b7e23
...
...
@@ -47,6 +47,8 @@
// Z-buffering mode: val = ((Z * 0x800 * 0x1000) / W) + 0x7FFCFF
// W-buffering mode: val = W - 0x1FF
// TODO: confirm W, because it's weird
// ... nope, that shit above isn't right
// also, the formula for the clear depth on GBAtek appears to be wrong
namespace
GPU3D
...
...
GPU3D_Soft.cpp
View file @
8c7b7e23
...
...
@@ -498,6 +498,10 @@ void RenderPolygon(Polygon* polygon)
s32
tr
=
((
perspfactorr1
*
vrcur
->
TexCoords
[
1
])
+
(
perspfactorr2
*
vrnext
->
TexCoords
[
1
]))
/
(
perspfactorr1
+
perspfactorr2
);
if
(
xr
==
xl
)
xr
++
;
// temp.
if
(
xl
>
255
)
continue
;
s32
xdiv
=
0x1000
/
(
xr
-
xl
);
//printf("y%d: %d->%d %08X %08X\n", y, xl, xr, lfactor, rfactor);
...
...
main.cpp
View file @
8c7b7e23
...
...
@@ -265,7 +265,7 @@ int main()
SetWindowText
(
melon
,
melontitle
);
}
}
printf
(
"deinit
\n
"
);
NDS
::
DeInit
();
return
0
;
...
...
melonDS.depend
View file @
8c7b7e23
# depslib dependency file v1.0
148
735
645
9
source:c:\documents\sources\melonds\main.cpp
148
863
645
2
source:c:\documents\sources\melonds\main.cpp
<stdio.h>
<windows.h>
"NDS.h"
...
...
@@ -10,7 +10,7 @@
1481161027 c:\documents\sources\melonds\types.h
1488635
272
source:c:\documents\sources\melonds\nds.cpp
1488635
597
source:c:\documents\sources\melonds\nds.cpp
<stdio.h>
<string.h>
"NDS.h"
...
...
@@ -87,7 +87,7 @@
"NDS.h"
"SPI.h"
1488
594249
source:c:\documents\sources\melonds\gpu2d.cpp
1488
635396
source:c:\documents\sources\melonds\gpu2d.cpp
<stdio.h>
<string.h>
"NDS.h"
...
...
@@ -148,7 +148,7 @@
1488497796 c:\documents\sources\melonds\gpu3d.h
1488
594938
source:c:\documents\sources\melonds\gpu3d.cpp
1488
637250
source:c:\documents\sources\melonds\gpu3d.cpp
<stdio.h>
<string.h>
"NDS.h"
...
...
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