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

1956 Commits

Author SHA1 Message Date
Sergey Lipskiy
cf2bce9176 Implement gSPSetStatus. 2016-11-17 16:47:27 +07:00
Sergey Lipskiy
c3caf2747d Correct wrap/clamp/sign-extend shaders.
Fixed Mario Tennis missing fire #1236
2016-11-16 13:16:32 +07:00
Sergey Lipskiy
5d7c02f7d1 Up shader storage version. 2016-11-14 20:53:55 +07:00
Sergey Lipskiy
5e65c115e9 Always ask for GL minor version. 2016-11-14 20:46:24 +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
3e84decd03 Rewrite wrap/clamp shaders. 2016-11-14 17:45:15 +07:00
Francisco Zurita
16262e52ad Fix some differences between GLES2 and GLES3 code. 2016-11-14 14:01:43 +07:00
oddMLan
6e15de2e09 Fixed blurry icon in main window
Handcrafted icon in small sizes for optimal view, main window icon doesn't look blurry anymore
2016-11-14 11:04:24 +07:00
Sergey Lipskiy
1fed809ac0 Fix AA for GL < 4.3 2016-11-14 10:53:21 +07:00
Sergey Lipskiy
23951575a9 Simplify clamp and sign-extend shaders. 2016-11-13 21:35:09 +07:00
Sergey Lipskiy
18248337b4 Up shader storage version. 2016-11-13 19:30:14 +07:00
Sergey Lipskiy
866fe9f7e9 Correct GLES2 HW light. 2016-11-13 19:15:57 +07:00
Sergey Lipskiy
65dee80e7b Fix color sign-extension and clamping.
Details:
https://github.com/gonetz/GLideN64/issues/661
2016-11-13 19:15:53 +07:00
Sergey Lipskiy
47c815b431 Check for GL_MAX_SAMPLES 2016-11-13 11:42:39 +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
8a92860271 Fix error in GLES2 implementation of LOD. 2016-11-10 02:02:56 -05:00
Logan McNaughton
801490a400 Fix debug build on Linux 2016-11-08 13:34:55 -07:00
Sergey Lipskiy
a68c0da1f8 Fix calc_light shader.
Fixed #1215
2016-11-08 13:26:16 +07:00
Logan McNaughton
4745601a74 Silence some compiler warnings 2016-11-07 12:18:26 -07:00
Sergey Lipskiy
7084767836 Fix main window's icon in static GUI lib. 2016-11-07 20:29:22 +07:00
Francisco Zurita
a48e1e37ca Add support for LOD with GLES2 2016-11-07 16:22:58 +07:00
AmbientMalice
d061ca044d INI Cleanup
Removed redundant async FB copies, and disabled depth buffer copies on Shadow Man to fix pause menu.
2016-11-05 14:53:29 +07:00
Logan McNaughton
51ee866c42 Remove copyDepthToRDRAM from GLideN64.custom.ini
Since software depth copy is the default these entries should be removed.
2016-11-04 08:43:40 -06:00
Francisco Zurita
7ca4d0430b Workaround for devices where glBlitFrameBuffer produces output upside
down.
2016-11-04 20:27:55 +07:00
Francisco Zurita
478344ab5f Fix some issues with multisampling which were causing GL errors 2016-11-04 20:05:23 +07:00
Sergey Lipskiy
fedb3a08a1 Correct N64 color sign-extend:
do not sign-extend alpha.

Fixed torches in Paper Mario.
2016-11-04 20:03:34 +07:00
Sergey Lipskiy
ae61e926c9 Change copyDepthToRDRAM default to SoftwareRender. 2016-11-04 14:06:46 +07:00
Sergey Lipskiy
2656436217 Simulate N64 color sign-extend. 2016-11-03 21:24:45 +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
Logan McNaughton
617517737d Specify a specific CRC function for microcodes 2016-11-03 17:37:40 +07:00
Logan McNaughton
2160f41451 Minor GLSL optimization
There is no point setting alphaValue and then potentially changing it, might as well wrap the alternative in an "else" statement
2016-11-03 17:19:41 +07:00
Sergey Lipskiy
1d87a92c72 Do not use frame buffer as texture if the buffer is just allocated.
Fixed tripleplay2000: black background in game #346

Problem: The game allocates auxiliary buffer with the same width
as the main one. Plugin detects it as main buffer and set its width
and height as of main buffer. Actual buffer height is half of main
buffer height, but it became known only when game switches to the
main buffer. Wrong buffer height leads to wrong calculation of
buffer address space. Game uses textures with addresses behind
the actual buffer’s address space but within calculated one.
Plugin tries to use buffer texture instead and, as the result,
everything is black.

Solution: The situation is bad. Plugin cannot detect that
allocated buffer is an aux one. I decided to forbid buffer usage
as texture if buffer is new. New buffer is blank, so reading from
it is strange. N64 games do lots of strange stuff, so this solution
is potentially dangerous.
2016-10-29 23:46:39 +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
428f3ad637 Add glTexStorage2D to GLFunctions 2016-10-28 21:43:31 +07:00
Sergey Lipskiy
6e460499bf Correct MSVS project files. 2016-10-28 21:43:06 +07:00
Sergey Lipskiy
2b29b6c09a Fix linear texture coordinate transformation.
Fixed Zelda OOT rotating "N" is miscolored (HLE) #661
2016-10-27 13:24:19 +07:00
Sergey Lipskiy
57dbfb5145 Revert changes in FrameBuffer::getTexture made by commit 6942083
These changes are incorrect and cause regression in Paper Mario fortune teller.
2016-10-25 12:27:49 +07:00
Francisco Zurita
e52918d07b Fix crash with software depth buffer when loading save states. 2016-10-25 11:17:31 +07:00
Sergey Lipskiy
67fd477c33 Implement rough approximation of N64 color clamping.
Fixed Minor Issue - Mischief Makers: Confettis in 3-10 are all black #1181
Fixed Mischief Makers - Mathfun questions are black and unreadable #1183
2016-10-24 17:56:07 +07:00
Francisco Zurita
e5f89406b7 Zelda subscreen hack always enables copy color to RDRAM 2016-10-19 00:05:30 -04:00
Sergey Lipskiy
48c8c25226 Remove CRC_OPT since it does not provide good enough checksum. 2016-10-18 21:00:12 +07:00
Francisco Zurita
afb7c8ccd1 Revert color format change. 2016-10-17 20:14:34 -04:00
Sergey Lipskiy
327ab57353 Correct isAdjustScreen 2016-10-16 20:30:37 +07:00
Logan McNaughton
0f5738e609 Use GL_DEPTH_COMPONENT16 for renderbuffer 2016-10-15 21:44:52 -06:00
Sergey Lipskiy
f17c7160d5 Correct condition when viewport and scrissor need to be adjusted in widescreen mode.
Fixed widescreen in SSB, #1121
2016-10-15 14:12:29 +07:00
Sergey Lipskiy
354327b3f9 Correct checksum calculation for CI textures.
Fixed Mischief Makers incorrect textures #1175
2016-10-15 12:52:34 +07:00
Sergey Lipskiy
bce335fc4f Fix Z for rects.
Fixed CyberTiger: flicker in game (regression) #1170

The game sometimes set invalid viewport with gSP.viewport.nearz > 1,
so the rect is clipped.
2016-10-14 18:28:05 +07:00
Francisco Zurita
fd05055950 Fixes slow PBOs in Paper Mario. 2016-10-13 14:35:00 +07:00
Sergey Lipskiy
92b39b6b72 Correct typo in CRC.h 2016-10-13 14:34:33 +07:00
Francisco Zurita
f614c26e95 Fixes GLES 3.1 in Adreno devices
See https://github.com/gonetz/GLideN64/issues/895
2016-10-13 14:24:18 +07:00