Sergey Lipskiy
2d712f2ae0
Rewrite textures loading and mapping:
...
- use RiceVideo method for texture size calculation.
RiceVideo uses the same method for texture dumping.
- rewrite texture mapping.
Texture Clamp-Wrap-Mirror implemented in shaders.
Problem explanation:
https://github.com/gonetz/GLideN64/issues/1885#issuecomment-485136358
Fixed various glitches with HD textures, #1885
2019-06-19 19:02:52 +07:00
Sergey Lipskiy
993960f9ea
Do not attempt to copy image to RDRAM when copyToRDRAM option set to "Disabled".
...
Fixed crash when open sub-screen in Zelda MM with copyToRDRAM disabled.
2019-05-22 20:16:10 +07:00
Sergey Lipskiy
03022db791
Check that RDRAM area is writable before writing buffer data into it.
...
Fixed Problem with Project64's protect memory option #764
2019-03-16 18:37:05 +07:00
Sergey Lipskiy
a5e8bf4f3c
Fix DepthBufferToRDRAM::_prepareCopy RDRAM bound condition.
2019-02-22 12:14:09 +07:00
Sergey Lipskiy
7d7b5fcee3
Correct RDRAMtoColorBuffer::copyFromRDRAM(FrameBuffer * _pBuffer)
...
Fixed course map in Lego Racers.
2019-01-13 00:40:01 +07:00
Sergey Lipskiy
9d7eb5b882
Fix in RDRAMtoColorBuffer::_copyFromRDRAM - draw rect in copy mode.
2018-10-17 15:52:53 +07:00
Sergey Lipskiy
0c2c4d3c27
Restore SCISSOR_TEST mode in RDRAMtoColorBuffer::_copyFromRDRAM
2018-10-17 15:52:52 +07:00
Sergey Lipskiy
8b3597614a
Always render RDRAM content into newly created frame buffer. Remove ugly hack for Mario Tennis scoreboard.
2018-10-17 15:52:52 +07:00
Logan McNaughton
e80577e105
Allow non-0 default framebuffer
2018-05-22 08:25:24 -06:00
Sergey Lipskiy
6725ad474a
Fix warnings of 64bit compiler.
2018-05-06 15:54:12 +07:00
Sergey Lipskiy
10710f96ac
Fix warnings from compiler and static code analizer.
2018-05-06 15:28:07 +07:00
Sergey Lipskiy
75ea06cec7
Code refactoring: fix issues found by static code analizer.
2018-04-19 20:16:21 +07:00
Logan McNaughton
958758b37a
Remove PixelWriteBuffer
...
And a few other small fixes
2018-03-09 20:32:56 +07:00
Logan McNaughton
cb90bb95ed
Cleanup FB Texture caching code
2018-02-26 21:15:51 +07:00
Sergey Lipskiy
26623cec1f
Code cleanup: fix issues in GLideN64 found by static code analyser.
2017-11-18 22:07:27 +07:00
Sergey Lipskiy
737338ca20
Use fixed point calculation for texrect s and t coordinates.
...
It is impossible to handle integer overflow when coordinates in float format.
Fixed textures in Major League Baseball #146
2017-11-18 15:41:18 +07:00
Logan McNaughton
a8aa9833e4
Fix chunk copy start address
2017-11-16 09:44:51 +07:00
Sergey Lipskiy
9ab843a9cc
Fix copy buffer chunk to RDRAM.
2017-11-16 09:44:48 +07:00
Sergey Lipskiy
4d4a2d18a2
Fix RDRAMtoColorBuffer::copyFromRDRAM with FBInfo
2017-11-16 09:44:44 +07:00
Francisco Zurita
538674da51
Fix Pokemon Snap border flicker
...
This flicker happens while zooming in to take a picture while RDRAM to
color buffer and color buffer to RDRAM are both enabled.
2017-11-15 16:17:42 +07:00
Logan McNaughton
5f088c70ce
Copy 4k block in FBInfo Chunk copies
2017-11-11 13:59:12 -07:00
Sergey Lipskiy
58636fcee6
Do not clear RDRAM after copyFromRDRAM when FBInfo enabled
...
Fixed FBInfo not working #1559
2017-10-30 15:01:38 +07:00
Francisco Zurita
77a777162c
Fix flickering when copy color to RDRAM and RDRAM to color buffer are
...
enabled.
2017-10-26 14:50:30 +07:00
Francisco Zurita
762def7dae
Fix issues reported by Valgrind
2017-10-09 23:51:16 -04:00
Francisco Zurita
c5b5364299
Better check when deciding to create a new color buffer texture.
2017-09-11 10:26:49 +07:00
Logan McNaughton
63e438f22c
zero fill gDPTile in RDRAMtoColorBuffer
2017-06-06 21:32:38 +07:00
Francisco Zurita
b31bb1fe9e
Add floating point support to RDRAM to color buffer
2017-04-25 16:51:18 +07:00
Francisco Zurita
f966336648
Don't allow zLUT index below zero when converting floats to UINT16
2017-04-16 20:34:13 -04:00
Sergey Lipskiy
0eeba0ec51
Fix ColorBufferToRDRAM::_prepareCopy for 1x native resolution.
...
Fixed Original N64 Resolution" breaks Majora's Mask (E) #1396
2017-03-19 20:20:05 +07:00
Sergey Lipskiy
c6feb32931
Revert changes in subscreen hack.
2017-03-18 22:16:53 +07:00
Sergey Lipskiy
4ed6495a21
Fix buffer size check in ColorBufferToRDRAM::_prepareCopy
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
291500c312
Correct max_height in ColorBufferToRDRAM::_copy
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
7f9a26b881
Correct height to copy in RDRAMtoColorBuffer::copyFromRDRAM.
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
0775d28065
Remove FrameBuffer::m_scaleY
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
1191b29ea7
Fix buffer height in ColorBufferToRDRAM::_prepareCopy
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
a4edd92ea7
Fix texture allocation for ColorBufferToRDRAM
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
456459be68
Add FrameBuffer::m_isMainBuffer flag.
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
4a2f5f7e7f
Rewrite buffer height calculation in ColorBufferToRDRAM
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
dd9be4817b
Rewrite buffer height calculation in DepthBufferToRDRAM.
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
bca21ed071
Invert y coordinate to align image origin with frame origin.
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
cf8cc76ff9
Disable DepthBufferToRDRAM if PixelReadBuffer is not available.
2017-02-28 15:48:10 +07:00
Sergey Lipskiy
827b6bb9cd
Code refactor: replace graphics::ObjectHandle() by graphics::ObjectHandle::null
2017-02-22 16:45:27 +07:00
Sergey Lipskiy
cebf20bf4a
Merge remote-tracking branch 'remotes/origin/master' into refactor_graphics
...
Conflicts:
projects/msvc12/GLideN64.vcxproj
projects/msvc12/GLideN64.vcxproj.filters
src/BufferCopy/ColorBufferToRDRAM.cpp
src/CMakeLists.txt
src/GLideNUI/ConfigDialog.cpp
src/GLideNUI/configDialog.ui
src/mupen64plus-video-gliden64.mk
2017-02-21 12:51:00 +07:00
Francisco Zurita
1319687f86
Replace ANDROID macro definition with OS_ANDROID
2017-02-09 20:38:27 +07:00
Francisco Zurita
4a330b98a8
Fix linker error when compiling GLES 2
2017-02-05 19:17:11 +07:00
Sergey Lipskiy
184ff8f017
Correct ColorBufferToRDRAM::_prepareCopy
...
Code cleanup.
2017-01-28 21:44:04 +07:00
Sergey Lipskiy
df4a81bfea
Add special Parameter classes to make parametrs usage more safe.
2017-01-28 16:52:09 +07:00
Sergey Lipskiy
50c0c38b63
Set texture unit for initialized texture in DepthBufferToRDRAM::init()
2017-01-27 22:39:13 +07:00
Sergey Lipskiy
81702f0e5d
Remove unused files from BufferCopy
2017-01-26 19:54:47 +07:00
Sergey Lipskiy
602e1dd859
Correct cmake project file. Fix compilation on Linux.
2017-01-25 21:01:21 +07:00