matto
3e8ab78258
Code cleanup: Adding newlines to code lines that were too long.
...
I think this adds to the readability of the code, as my brain
starts reeling when the line has to break off the page.
2015-09-03 21:27:55 +06:00
matto
6c22746619
Code cleanup: removing random semicolon.
2015-09-03 21:25:40 +06:00
matto
4eb27a8795
Adding assert on malloc
...
We do this in other places and I think it's good behaviour for the
exceptional occasion that we cannot allocate memory.
2015-09-03 21:24:35 +06:00
matto
6156c35617
Code cleanup: moving logic from large loop in TextureCache::_load to
...
worker function.
This makes this loop tighter and easier to read. The loop was really
difficult to read before, and now it's a tad easier.
2015-09-03 21:22:08 +06:00
purplemarshmallow
2847606877
Always reinit buffer after its height correction.
...
This fixes pokemons library in Pokemon Stadium 2.
2015-09-03 20:52:12 +06:00
matto
fa7e1c8137
Splitting up asserts
...
If these asserts are to be useful for debugging, they should really
be split up so that we can tell which one is failing.
2015-08-29 11:55:34 -04:00
purplemarshmallow
59c771cb7b
[ini] remove Knockout Kings
2015-08-27 19:44:27 +06:00
purplemarshmallow
b62e50a86e
[ini] remove validityCheckMethod
2015-08-27 19:44:24 +06:00
Sergey Lipskiy
2604b57bf1
Remove ValidityCheckMethod from config and UI.
...
Up config version.
2015-08-27 19:44:19 +06:00
purplemarshmallow
8e096a8db9
remove fill RDRAM functionality
...
fix m_fingerprint usage
fix code formatting
2015-08-27 19:43:00 +06:00
Sergey Lipskiy
c6988bb963
Fig regression with frame/depth buffer copy in HLE mode caused by commit 77f342f
.
2015-08-27 19:39:29 +06:00
Sergey Lipskiy
5eddea5baf
Add workaround for Adreno issue with glBlitFramebuffer.
...
Thanks fzurita for problem investigation and found solution.
2015-08-27 19:20:26 +06:00
purplemarshmallow
de32176303
Don't discard frame buffers creation when _height == 0
2015-08-26 20:43:09 +06:00
purplemarshmallow
97468d8e2a
enable validity checking if copyFromRDRAM option is on
2015-08-26 19:42:43 +06:00
Sergey Lipskiy
60c8003dc9
Remove GL ES extensions enablings from fragment shaders,
...
because they cause crash on PowerVR GPUs.
No regression found on Adreno and Tegra GPU. Need to be tested on other GPUs.
2015-08-26 19:27:02 +06:00
Sergey Lipskiy
444545baea
Enable hack_VIUpdateOnCIChange for Perfect Dark.
...
Fixed: Perfect Dark flickering lights #609
2015-08-23 20:38:44 +06:00
purplemarshmallow
01ffde2aa9
update scale when resizing window
2015-08-23 12:40:56 +06:00
Sergey Lipskiy
57e88cb800
Remove unused code. Fix code formatting.
2015-08-17 21:57:01 +06:00
purplemarshmallow
8463c0347f
fix regression in Mario Tennis
2015-08-17 21:57:00 +06:00
purplemarshmallow
0735bd0372
modify fingerprint validity checking method
...
In Zelda OOT the CPU applies a filter on the framebuffer texture. If we
write a small amount of data at the beginning the CPU won't change our
specific values
2015-08-17 21:56:59 +06:00
purplemarshmallow
e0face5f86
use unique values as fingerprint
...
this works much better
But sometimes Zelda writes values not only under but also over the
fingerprint, Link's model is lost again
2015-08-17 21:56:58 +06:00
purplemarshmallow
e617177958
fix problem with validity ckecking in Zelda OOT
...
problem: the game writes data below our fingerprint
solution: just check if the fingerprint is still there and ignore the
data below
2015-08-17 21:56:58 +06:00
Sergey Lipskiy
d30d813b18
Fix texture filter init/shutdown:
...
- texture filter updated when config.textureFilter options changed.
2015-08-17 15:42:40 +06:00
Sergey Lipskiy
5bf7a4e4de
Add support of 6xBRZ to user interface.
2015-08-17 15:37:15 +06:00
Sergey Lipskiy
daf18efabb
Update xBRZ texture filter to version 1.4
...
xBRZ: "Scale by rules" - high quality image upscaling filter by Zenju
Adopted sources from
http://sourceforge.net/projects/xbrz/files/xBRZ/
2015-08-17 15:37:15 +06:00
Sergey Lipskiy
2f34089850
Fix uniform initialization for zelda_monochrome_fragment_shader.
...
Fixed GL error in Zelda OOT subscreen after savestate load.
2015-08-16 18:21:55 +06:00
AmbientMalice
b8d9d30ecc
Apply Quake II hack to Quake 64.
...
I have no idea whether I got the syntax right thanks to not being able to build GLideN64. Assuming this works, this should fix underwater rendering in Quake 64.
2015-08-16 13:18:29 +06:00
purplemarshmallow
6e6fec1d94
Put Goldeneye microcode to the list of special microcodes
...
and disable near-plane clipping for it.
.Non = true
2015-08-15 19:51:54 +06:00
Sergey Lipskiy
c9c8b3a63e
Relax condition to enable alpha dither.
...
Fixed noise in Tonic Trouble #582 and Mission Impossible #616
2015-07-26 14:50:14 +06:00
purplemarshmallow
fc3a4c8085
enable subscreen delay fix for Doubutsu no Mori
2015-07-26 09:21:55 +06:00
purplemarshmallow
77f342fc63
fix depth buffer copy in LLE
...
in LLE it works well for Star Wars Episode I - Racer but for most games
it does not work correctly
2015-07-25 17:32:21 +06:00
purplemarshmallow
dbfbeb1b13
fix copy color to RDRAM in LLE
...
fixes #554
2015-07-25 17:32:20 +06:00
Gillou68310
ef46331c39
Add config option to change polygon offset values
2015-07-24 13:20:04 +06:00
Sergey Lipskiy
cbbd5d17de
Fix crash when fb emulation enabled/disabled during gameplay, issue #601
2015-07-23 21:55:30 +06:00
Sergey Lipskiy
70c4941fb9
Correct texture force clamp t condition in texrect.
...
Fixed regression in MK64, caused by commit c50b3c8
, issue #607
2015-07-23 16:31:09 +06:00
Sergey Lipskiy
57efca4692
Fix RomOpen for Mupen64Plus API.
...
RomOpen for Mupen64Plus API returns int, while Zilmar specs RomOpen returns void.
Thanks fzurita for pointing on this mistake.
Fixed issue #604
2015-07-23 16:07:33 +06:00
Sergey Lipskiy
16e3af616c
Add hack hack_VIUpdateOnCIChange for Quake II.
...
Quake II uses single buffer mode when underwater, so additional check
gDP.colorImage.changed != 0 is necessary to detect frame change.
This check may cause dummy buffers swaps, so now it is used for Quake II only.
Fixed #592
2015-07-03 15:03:01 +06:00
Sergey Lipskiy
d8817013cd
Fix geometry clipping problem for GL ES.
...
NoN - no near clipping.
GL ES does not support z-clipping disabling, so harmless hack used here.
Harmlessness condition: z value is not used by pixel pipeline.
gDP.otherMode.depthCompare == 0 && gDP.otherMode.depthUpdate == 0 - z not used for depth compare/update.
Thus we can set vertex z to any value, which will ensure that z/w is in range [-1, 1], e.g. to zero.
Fixed issue #588
2015-07-03 15:02:04 +06:00
Sergey Lipskiy
c50b3c8c1d
Correct force texture clamp condition in OGLRender::drawTexturedRect.
...
Fixed issue #506 - Perfect Dark Target Test target not displaying correctly
2015-07-03 13:45:59 +06:00
Gillou68310
40da41d953
Fix framebuffer texture rectangle coordinate in GLES2
2015-07-02 10:45:52 +06:00
Sergey Lipskiy
9a071e4292
MSVS project correction: remove configuration Debug 1964.
2015-07-01 11:04:05 +06:00
Sergey Lipskiy
b675195fbc
MSVS project correction:
...
remove NEWGLNINTENDO64_EXPORTS preprocessor definition, add _CRT_SECURE_NO_WARNINGS one.
2015-06-30 22:47:16 +06:00
Sergey Lipskiy
c13870289d
MSVS project correction:
...
remove Boost from the list of additional library directories.
2015-06-30 22:39:20 +06:00
purplemarshmallow
b0ab13b871
GLideN64 and GLideNHQ are now in one solution
...
GLideN64 is now dependent on GLideNHQ
2015-06-30 22:33:48 +06:00
purplemarshmallow
aec07a3151
fix build warning: "TargetName(GLideN64) does not match the Linker's OutputFile property value"
2015-06-30 22:33:39 +06:00
Sergey Lipskiy
d0c8750759
Fix tex1 read in mipmap shader.
...
Fixed mip-mapping in general and issue #158 in particular.
2015-06-30 14:48:16 +06:00
Sergey Lipskiy
4a75d4d357
Add hack to fix both mario 64 and mario kart 64 background (blue sky) with widescreen hack enable.
...
Author: Gillou68310
2015-06-26 22:06:06 +06:00
Gillou68310
6be5ff6396
Force multisampling to 0 when not supported
2015-06-26 19:29:54 +06:00
Gillou68310
c2b9961cc8
Removed useless GLES headers
2015-06-26 19:29:52 +06:00
Sergey Lipskiy
7936e02066
Enable hack_subscreen for GLES2.
2015-06-26 19:20:44 +06:00