1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00
Commit Graph

55 Commits

Author SHA1 Message Date
Sergey Lipskiy
d7407d58f9 Minor code cleanup. 2017-02-12 16:10:58 +07:00
Sergey Lipskiy
b9453474b6 Fix initialization of multisample textures. 2017-02-12 16:05:02 +07:00
Logan McNaughton
1f74b9c821 Disable N64 Depth Compare if Image Textures are unsupported
Also disable fragment depth writing in GLES2
2017-02-09 21:54:44 +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
80ed169e24 Remove use of OpenGL.h 2017-01-22 20:43:05 +07:00
Sergey Lipskiy
4e459c7645 Change type of CachedTexture name to graphics::ObjectHandle 2017-01-21 19:48:02 +07:00
Sergey Lipskiy
f64136ff3b Remove OpenGL from DepthBuffer. 2017-01-21 18:55:14 +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
dcf1065957 Add textureIndices parameters 2017-01-08 17:49:47 +07:00
Sergey Lipskiy
daf6646b97 BufferManipulationObjects 2: createRenderbuffer, initRenderbuffer 2017-01-02 22:40:41 +07:00
Sergey Lipskiy
cf5e9d8ed2 BufferManipulationObjects WIP 2017-01-02 21:00:49 +07:00
Sergey Lipskiy
84b7050339 Use gfxContext in DepthBuffer 2017-01-01 22:00:15 +07:00
Sergey Lipskiy
3eb11aac82 setTextureParameters WIP 2017-01-01 21:59:54 +07:00
Logan McNaughton
ad77e3db52 Remove some GLES3_1 ifdefs 2016-11-22 12:59:15 +07:00
Sergey Lipskiy
be6179cbcc Revert 263ddf4 because it does not work properly on old PC cards. 2016-11-14 20:45:32 +07:00
Sergey Lipskiy
263ddf4baa Use glTexStorage2DMultisample instead of glTexImage2DMultisample for OpenGL.
The same code with GLES3X.
2016-11-13 11:42:14 +07:00
Francisco Zurita
478344ab5f Fix some issues with multisampling which were causing GL errors 2016-11-04 20:05:23 +07:00
Francisco Zurita
472c31986c Fix GL Errors in Pokemon Stadium 2 minigames.
Graphics became corrupt when the GL errors happened. With this change,
graphics no longer become corrupt.
2016-11-03 18:25:18 +07:00
Francisco Zurita
df366f0f6b Fix verious GL errors in GLES 3.1 mode and Mario tennis. 2016-10-29 19:50:44 +07:00
Sergey Lipskiy
f426d61881 Correct depth buffer attachment.
Fixed Link's portrait is missing in the pause screen #1134
2016-09-26 17:15:47 +07:00
Sergey Lipskiy
8dad84cc39 Fix set current depth buffer.
Fixed depth issues in Toy Story 2.
2016-09-19 11:50:05 +07:00
Sergey Lipskiy
32172d30af Fix depth buffer clear for aux buffers. 2016-09-11 18:08:03 +07:00
Francisco Zurita
f55a4aee8f Fixes some depth issues in Android 2016-07-23 12:42:36 -04:00
Francisco Zurita
60c5756ead Fixes corrupt graphics in PowerVR 2016-07-11 10:01:52 +06:00
Logan McNaughton
1cbbea8183 Enable Framebuffer Emulation on the Raspberry Pi
renderbuffer code was written by gonetz, not me
2016-06-26 17:40:14 +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
020144d6fd Disable scissoring when blit internal buffers. 2016-05-14 18:15:54 +06:00
Sergey Lipskiy
a08af7003f Fix DepthBuffer::copyDepthBufferTexture when AA is enabled. 2016-05-09 18:11:30 +06:00
Sergey Lipskiy
67e75ad997 Fix depth texture sizes.
Fixed depth compare when internal resolution set by native resolution factor
is greater then screen/window resolution.
2016-05-09 17:58:21 +06:00
Sergey Lipskiy
ccff245f85 Implement render to depth buffer.
Fixed shadows in Pilot Wings.
Removed special texrect for NFL Quaterback 98 monitor: it is now supported by general code
2016-05-08 17:25:22 +06:00
Sergey Lipskiy
ef5af03aaa Code refactor: replace
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, frameBufferList().getCurrent()->m_FBO)
by
  frameBufferList().setCurrentDrawBuffer()
2016-05-08 13:35:17 +06:00
Sergey Lipskiy
c504b9b216 Correct depth buffer removal:
if depth buffer removed, clear pointers on it for all frame buffers.
2016-03-06 21:12:23 +06:00
Sergey Lipskiy
54d486371a Add "UseNativeResolutionFactor" option. 2016-02-27 12:43:20 +06:00
Lioncash
b6c18d2565 FrameBuffer/DepthBuffer: Add missing class members to constructor initializer lists 2015-10-10 14:05:18 -04:00
Sergey Lipskiy
1dc2bd1a56 Fix compilation on Linux. 2015-06-17 18:21:11 +06:00
Sergey Lipskiy
48959f0702 Revert "Correct coronas emulation in Perfect Dark."
This reverts commit 36fbcd5eac.

Reverted commits causes issues in CBFD. Need another approach.
2015-06-14 22:57:53 +06:00
Sergey Lipskiy
5e56691dcf Fix compilation of depth_compare_shader_float for GL ES 3.1
Note: the shader does not work properly yet on Android
2015-06-10 23:23:53 +06:00
Sergey Lipskiy
5e114a7a83 Fix compilation with gcc, issue #572 2015-06-09 16:54:57 +06:00
Sergey Lipskiy
36fbcd5eac Correct coronas emulation in Perfect Dark.
Fixed issue #563.
2015-06-04 22:17:04 +06:00
Sergey Lipskiy
1653069329 Correct FBO texture formats for different GL versions. 2015-06-02 18:57:24 +06:00
Sergey Lipskiy
d30a2dc8b5 Correct depth buffer texture format for GLES2. 2015-05-18 13:51:16 +06:00
Sergey Lipskiy
12f9f8d5d0 Disable ResolveDepthBufferTexture creation for system without GL_MULTISAMPLING_SUPPORT 2015-05-18 13:51:15 +06:00
Sergey Lipskiy
7cbca30197 Disable resolveMultisampledTexture() for system without GL_MULTISAMPLING_SUPPORT 2015-05-18 13:51:10 +06:00
Sergey Lipskiy
eabbd252f8 Change CachedTexture::frameBufferTexture type to enum.
Need to separate one-sampled frame buffer textures from multosampled ones.
2015-05-13 10:22:27 +06:00
Sergey Lipskiy
b728ab97a7 Disable multisampling related code for GLES below 3.1 2015-05-13 10:22:25 +06:00
Sergey Lipskiy
09b78ea577 Replace define GLES3 by GLES3_1 since current code is GLES3.1 compatible.
GLES3 is different.
2015-05-13 10:22:18 +06:00