1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00
Commit Graph

126 Commits

Author SHA1 Message Date
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
Sergey Lipskiy
5445dcb16f Add ColorBufferReaderWithBufferStorage 2017-01-25 20:58:11 +07:00
Sergey Lipskiy
5ba4588752 Rewrite ColorBufferToRDRAM 2017-01-25 20:58:05 +07:00
Sergey Lipskiy
a94bac0dd0 Buffers to RDRAM rewrite WIP 2017-01-23 21:20:48 +07:00
Sergey Lipskiy
86708c6dc2 Remove OpenGL from RDRAMtoColorBuffer 2017-01-23 21:20:43 +07:00
Sergey Lipskiy
57d600fc86 Remove OpenGL from DepthBufferToRDRAM 2017-01-23 21:20:36 +07:00
Sergey Lipskiy
80ed169e24 Remove use of OpenGL.h 2017-01-22 20:43:05 +07:00
Sergey Lipskiy
8460b08b09 Move struct PBOBinder from FrameBuffer.h to separate file. 2017-01-22 19:12:39 +07:00
Sergey Lipskiy
4e459c7645 Change type of CachedTexture name to graphics::ObjectHandle 2017-01-21 19:48:02 +07:00
Sergey Lipskiy
f147927af9 Remove OpenGL use from FrameBuffer 2017-01-21 16:35:00 +07:00
Sergey Lipskiy
e83c3489a3 Replace OGLVideo by DisplayWindow
Replace OGLRender by GraphicsDrawer
2017-01-16 20:56:11 +07:00
Sergey Lipskiy
09a5b414c4 Remove FBOTextureFormats usage 2017-01-16 20:56:01 +07:00
Sergey Lipskiy
43e8aef6ea Remove old-style code. 2017-01-09 11:21:06 +07:00
Sergey Lipskiy
c39b639d7c Remove unused shaders related files. 2017-01-08 20:31:38 +07:00
Sergey Lipskiy
7af25b2452 Rewrite shader cache 2017-01-08 17:49:53 +07:00
Sergey Lipskiy
dcf1065957 Add textureIndices parameters 2017-01-08 17:49:47 +07:00
Sergey Lipskiy
9725c527b9 Replace ShaderCombiner by graphics::CombinerProgram WIP 2017-01-08 17:49:37 +07:00
Francisco Zurita
893af29512 Fix runtime library loading errors with GLES 3.0.
Some devices with GLES 3.0 support only are not tolerant of GLES 3.1
specific calls.
2017-01-05 00:25:40 -05:00
Sergey Lipskiy
6356b1cb7a Init FrameBuffer in DepthBufferToRDRAM 2017-01-02 23:04:09 +07:00
Sergey Lipskiy
149fdc8238 Init FrameBuffer in ColorBufferToRDRAM 2017-01-02 22:57:23 +07:00
Sergey Lipskiy
e905f98f72 Use gfxContext in BufferCopy 2017-01-02 00:09:28 +07:00
Sergey Lipskiy
3eb11aac82 setTextureParameters WIP 2017-01-01 21:59:54 +07:00
Sergey Lipskiy
599f7b1e93 Make separate vertex shaders for triangles and rects. 2016-12-31 19:29:50 +07:00
Sergey Lipskiy
6735db1322 ColorBufferToRDRAM: re-create pixel buffers when FBO texture changed. 2016-11-28 21:17:49 +07:00
Sergey Lipskiy
3aa365d24a Rebuild pixel buffers in ColorBufferToRDRAM_BufferStorageExt when
_initBuffers called more than once.

Example: Roadster trophy chages buffer size several times on the game start.
Each time ColorBufferToRDRAM_BufferStorageExt::_initBuffers called.
The game raises GL error on the second _initBuffers call.
2016-11-26 19:25:06 +07:00
Francisco Zurita
313741d827 Use BufferStorage extension for faster glReadPixels. 2016-11-24 14:20:43 +07:00
Francisco Zurita
20e4f972aa Use glTexStorage2D for textures being attached to FBOs
But only for GLES 3.0 and 3.1, with OpenGL it causes issues for older
versions.
2016-11-23 00:23:19 -05:00
Francisco Zurita
b3b8eeb83e Use configured FBO texture formats in more places. 2016-11-23 00:14:15 -05:00
Sergey Lipskiy
cc63ed1764 Minor correction in ColorBufferToRDRAM::_prepareCopy 2016-11-21 16:52:26 +07:00
Francisco Zurita
afb7c8ccd1 Revert color format change. 2016-10-17 20:14:34 -04:00
Francisco Zurita
fd05055950 Fixes slow PBOs in Paper Mario. 2016-10-13 14:35:00 +07:00
Sergey Lipskiy
6f4f24a812 Correct read alpha from color buffer in RDRAM
Undo changes from 06da08

Fixed NBA Courtside 2 - Featuring Kobe Bryant wrong intro #1138
2016-10-01 21:30:33 +07:00
Sergey Lipskiy
6694655184 Set maximal height of buffer copied to RDRAM to 480
Pokemon Stadium 2 (PAL) - Freeze after nintendo logo with OpenGL #1150
2016-10-01 18:34:42 +07:00
Sergey Lipskiy
16406bb1b0 Fixed Majora's mask in-game pictures look incorrect with software depth buffer #1131 2016-09-23 12:05:48 +07:00
Sergey Lipskiy
1bdce5c579 Fix ColorBufferToRDRAM::_prepareCopy: blit current buffer if its scale is not 1.0
Fixed 640x480 framebuffer bug Perfect Dark (U) #844
2016-08-28 16:53:07 +07:00
Francisco Zurita
62ec0cb821 Fixes crash at GoldenEye startup 2016-07-06 10:54:27 +06:00
Sergey Lipskiy
07854d3857 Use OGLRender::copyTexturedRect in ColorBufferToRDRAM::_prepareCopy.
Enable color buffer copy for GLES2.
2016-06-23 16:15:27 +06:00
Sergey Lipskiy
4c4b1bf57d Code refactor: move struct FBOTextureFormats to separate files. 2016-06-20 15:16:15 +06:00
Sergey Lipskiy
86fbea9edc Code refactor: replace NULL by nullptr. 2016-06-10 12:40:18 +06:00
Sergey Lipskiy
0060d3ea80 Fix fb texture size for ColorBufferToRDRAM.
Fixed crash in ColorBufferToRDRAM::_initFBTexture on Perfect Dark start.
2016-06-10 12:40:12 +06:00
Logan McNaughton
3c1495de80 Update ColorBufferToRDRAMStub.cpp to match recent commits 2016-06-09 12:25:40 +06:00
Sergey Lipskiy
ffe0b61e76 Rename ColorBufferToRDRAMDesktop to ColorBufferToRDRAM_GL
and ColorBufferToRDRAMAndroid to ColorBufferToRDRAM_GLES
2016-06-08 22:06:02 +06:00
Sergey Lipskiy
2ed1dc17ad ColorBufferToRDRAM: use inner buffer for pixel data to avoid memory allocation/deallocation. 2016-06-08 21:57:50 +06:00
Francisco Zurita
87c93d9491 Fix PBOs in Android 2016-06-08 21:26:22 +06:00
Francisco Zurita
356d1e291b One less copy when copying GPU Frame Buffer to RDRAM 2016-06-02 23:02:03 -04:00
Sergey Lipskiy
db8d8bee30 Fix DepthBufferToRDRAM.cpp needs to explicitly include C-style <math.h> #1007 2016-06-02 15:29:54 +06:00
Sergey Lipskiy
26f6b545e1 ColorBufferToRDRAM: move platform specfic code to separate classes. 2016-05-30 11:11:22 +06:00
Sergey Lipskiy
2834fa1780 Code refactor: move classes FrameBufferToRDRAM, DepthBufferToRDRAM and RDRAMtoFrameBuffer from FrameBuffer.cpp to separate files. 2016-05-30 11:11:15 +06:00