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

969 Commits

Author SHA1 Message Date
Sergey Lipskiy
e00ef89a1b Revert "Correct combiners when cycleType == G_CYC_1CYCLE"
This hack makes pause screen in Paper Mario wrong,
because first stage of the 1 cycle combiner uses T0 and the second uses T1.
The hack turns that combiner into wrong 2 cycle one.

This reverts commit 4e7ee9653637b50e84cf0fd026379551cf7efa9e.
2015-05-13 10:20:23 +06:00
Sergey Lipskiy
04062925d3 Don't copy depth buffer to RDRAM if it was not cleared completly.
Fixed hangs in Roadsters, issue #330
2015-05-13 10:20:22 +06:00
Sergey Lipskiy
7365301a8d Fix crash in _copyDepthBuffer() 2015-05-13 10:20:21 +06:00
Sergey Lipskiy
06da08e349 Fix RDRAMtoFrameBuffer::CopyFromRDRAM - if color is black, set alpha black also
Fixed Doraemon - Mittsu no Seireiseki, issue #313
2015-05-13 10:20:20 +06:00
Sergey Lipskiy
4553f0345e Fix RDRAMtoFrameBuffer::CopyFromRDRAM:
clear buffer in RDRAM only when current buffer was changed.
Otherwise it is possible that game already uses the buffer for other purpose,
and the clear will overwrite the data.

Fixed Donkey Kong 64 intro, issue #308
2015-05-13 10:20:20 +06:00
Sergey Lipskiy
1b8f6f2240 Don't apply fog when fog.multiplier <= 0
Fixed fog issue in Nightmire Creatures, issue #40
2015-05-13 10:20:19 +06:00
Sergey Lipskiy
27acee0008 Insert fog disable condition to the right place.
Vertex alpha is now calculated right in fog mode even if fog is disabled.
2015-05-13 10:20:18 +06:00
Sergey Lipskiy
79f5893000 Correct alpha compare for noise dither mode.
Fixed Rare logo in KI64, #11
2015-05-13 10:20:18 +06:00
Sergey Lipskiy
6910278fbe Enable copy color buffer to RDRAM by default. 2015-05-13 10:20:17 +06:00
Sergey Lipskiy
a2a21932a4 Add fix(hack!) for TLUT mode in "Nushi Zuri 64 - Shiokaze ni Notte". 2015-05-13 10:20:16 +06:00
Sergey Lipskiy
5c605a130c Rewrite gSPSetOtherMode_H and gSPSetOtherMode_L 2015-05-13 10:20:16 +06:00
Sergey Lipskiy
5464a434ea Fix filtering mipmap textures when 3 point texture filter selected. 2015-05-13 10:20:15 +06:00
Sergey Lipskiy
350da68077 Always reload custom ini settings after config dialog,
otherwise custom settings will be lost.
2015-05-13 10:20:14 +06:00
Sergey Lipskiy
24dc02563e Don't replace spaces by underscore in romname. 2015-05-13 10:20:14 +06:00
Sergey Lipskiy
5459f942d0 Fix OGLVideo::changeWindow() - updateScale after _changeWindow(). 2015-05-13 10:20:13 +06:00
Sergey Lipskiy
080900e553 Remove redundant calls to video() functions in FrameBuffer::_initTexture 2015-05-13 10:20:12 +06:00
Sergey Lipskiy
3031883409 Move zLUT initialization to DepthBufferList ctor.
Destruction of zLUT moved to DepthBufferList destructor.
2015-05-13 10:20:12 +06:00
Sergey Lipskiy
90e27ea0d6 Correct dummy texture parameters 2015-05-13 10:20:11 +06:00
Sergey Lipskiy
cbae8d686a Use Adler32 instead of CRC32 for frame buffer checksum calculation. 2015-05-13 10:20:10 +06:00
Sergey Lipskiy
cf7d29a507 Use PBOBinder in FrameBufferToRDRAM::CopyToRDRAM and FrameBufferToRDRAM::CopyToRDRAM 2015-05-13 10:20:09 +06:00
Sergey Lipskiy
778d1e38d5 Add target parameter to PBOBinder struct. 2015-05-13 10:20:09 +06:00
Sergey Lipskiy
905385f251 Correct texture size for RDRAMtoFrameBuffer 2015-05-13 10:20:08 +06:00
Sergey Lipskiy
175598d819 Correct PBO mode for FrameBufferToRDRAM and DepthBufferToRDRAM. 2015-05-13 10:20:07 +06:00
Sergey Lipskiy
7af7e87b7b Don't set uniforms for N64 depth compare when it is not enabled. 2015-05-13 10:20:07 +06:00
Sergey Lipskiy
e8bb0a8438 Don't update texture parameters for texrects:
texrects calculates texture coordinates for its vertices.
2015-05-13 10:20:06 +06:00
Sergey Lipskiy
ee35a23fbf Minor optimizations. 2015-05-13 10:20:05 +06:00
Sergey Lipskiy
0cc6dcaf4c Correct condition for HW light usage in combiner ctor. 2015-05-13 10:20:05 +06:00
Sergey Lipskiy
2831aca26b Remove SHADE combiner creation from Combiner_Init():
It causes issues for games, which do not support HW Lighting.
2015-05-13 10:20:04 +06:00
Sergey Lipskiy
aaaabec1d2 Check returnded blockIndex validity. 2015-05-13 10:20:03 +06:00
Sergey Lipskiy
0e6f8a72ee Add lighting uniform block. 2015-05-13 10:20:03 +06:00
Sergey Lipskiy
b4906b93f0 Rename UniformBlock::attachShaderCombiner to UniformBlock::bindWithShaderCombiner 2015-05-13 10:20:02 +06:00
Sergey Lipskiy
9dcb000eb9 Correct UniformBlock::attachShaderCombiner 2015-05-13 10:20:01 +06:00
Sergey Lipskiy
737ba5ea53 Simplify shaders, which do not use textures. 2015-05-13 10:20:01 +06:00
Sergey Lipskiy
4c6bd98be1 Replace uniform float uFogMultiplier, uFogOffset by uniform vec2 uFogScale 2015-05-13 10:20:00 +06:00
Sergey Lipskiy
3c1c14b711 Check current uniform buffer before BindBuffer. 2015-05-13 10:19:59 +06:00
Sergey Lipskiy
8504b3ad28 Check data change before uniform block update. 2015-05-13 10:19:58 +06:00
Sergey Lipskiy
c121b20901 Add textures uniforms block. 2015-05-13 10:19:58 +06:00
Sergey Lipskiy
23617ad435 Remove unused uniforms uScreenWidth and uScreenHeight 2015-05-13 10:19:57 +06:00
Sergey Lipskiy
0131b37f54 Replace color uniforms by uniform block ColorsBlock. 2015-05-13 10:19:56 +06:00
Sergey Lipskiy
5a49db12d5 Implement custom rom settings. 2015-05-13 10:19:56 +06:00
Sergey Lipskiy
2f7ad0180a Switch to settings file. 2015-05-13 10:19:55 +06:00
Sergey Lipskiy
2b55125978 Minor correction in SaveScreenshot. 2015-05-13 10:19:54 +06:00
Sergey Lipskiy
64b5c834a7 Rename ignoreCFB to detectCFB.
Up settings version.
2015-05-13 10:19:53 +06:00
Sergey Lipskiy
9fc26ef775 Remove CHANGED_COMBINE_COLORS usage. 2015-05-13 10:19:53 +06:00
Sergey Lipskiy
3961b5e368 Code cleanup: Split ShaderCombiner::updateColors on several functions. 2015-05-13 10:19:52 +06:00
Sergey Lipskiy
79ddb63c33 Fix CHANGED flags clear in OGLRender::_updateStates()
Noticable performance boost.
2015-05-13 10:19:51 +06:00
Sergey Lipskiy
61e6eb268c Correct condition for buffers removal in VI_UpdateSize() :
remove buffers when interlace mode changed or when main buffer width changed.
2015-05-13 10:19:51 +06:00
Sergey Lipskiy
ff890e3bc8 Add special blend mode hack to remove Pilot Wings brown boxes. 2015-05-13 10:19:50 +06:00
Sergey Lipskiy
aa05ea2b54 Add Pilot Wings ucode to the list of special ucodes, because it needs NoN clipping. 2015-05-13 10:19:49 +06:00
Sergey Lipskiy
4f0b0631b9 Add special fog modes support for texrects.
Fixed lode runner: missing blending effect on texts #275
2015-05-13 10:19:49 +06:00