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

1010 Commits

Author SHA1 Message Date
Sergey Lipskiy
28e252b667 Remove legacy hack in texrect for textures which supposed to be mirrored, but do not have mirror flag.
Fixed menu textures in Automobili Lamborghini, issue #180
2015-05-13 10:20:51 +06:00
Sergey Lipskiy
ebfd9b3c4e Enable texture mirror if real_size / size == 2 2015-05-13 10:20:50 +06:00
Sergey Lipskiy
9b923ab5d9 Correct GBIInfo::_makeCurrent - check NoN flag of the new microcode.
Fixed WCW Backstage Assault.
2015-05-13 10:20:50 +06:00
Sergey Lipskiy
a909395c1d Correct TEXTURE_GEN condition. 2015-05-13 10:20:49 +06:00
Sergey Lipskiy
9a556978ba Add hack for LEGO racers course map:
copy RDRAM content to new buffer.

Fixed issue #314
2015-05-13 10:20:48 +06:00
Sergey Lipskiy
ebc5d5bef3 Implement fake copy color buffer to RDRAM for Zelda OOT.
Fixed Ocarina of Time pause delay #327
2015-05-13 10:20:48 +06:00
Sergey Lipskiy
7c91526edc Fix gSPModifyVertex: clear clip flag for modified coordinates.
Fixed ECW Hardcore Revolution #188
2015-05-13 10:20:47 +06:00
Sergey Lipskiy
32e8f9187d Fix vertex color set for fillrect.
Fixed fillrect in Mahjong Hourouki Classic, issue #138
2015-05-13 10:20:46 +06:00
Sergey Lipskiy
3fd958431a Fix tile load via gDPLoadBlock when amount of tile data is over TMEM size.
Fixed Tom & Jerry / PPG CHEMICAL X: texture issues #183
2015-05-13 10:20:45 +06:00
Sergey Lipskiy
dae9796fff Disable cull mode update in rect commands, because it will be disabled anyway. 2015-05-13 10:20:45 +06:00
Sergey Lipskiy
3d3d19498c Disable cull face in _initStates(). 2015-05-13 10:20:44 +06:00
Sergey Lipskiy
5bad15abd9 Correct scissor set in FrameBuffer and DepthBuffer. 2015-05-13 10:20:43 +06:00
Sergey Lipskiy
f76de6450a Correct gSP.changed and gDP.changed in RDRAMtoFrameBuffer::CopyFromRDRAM 2015-05-13 10:20:43 +06:00
Sergey Lipskiy
f0ef6ef31d Set CHANGED_VIEWPORT when viewport cvhanged in GLVideoMupenPlus::_swapBuffers() 2015-05-13 10:20:42 +06:00
Sergey Lipskiy
0b7d6499d2 Correct _setGLState in PostProcessor. 2015-05-13 10:20:41 +06:00
Sergey Lipskiy
b8e0832893 Minor correction in OGLRender::_updateStates. 2015-05-13 10:20:41 +06:00
Sergey Lipskiy
5ccf6ee60a Correct CheckForFrameBufferTexture:
if found buffer is CFB - remove it. Buffers renderd by CPU can't be used as texture frame buffer.

Fixed excitebike64: black textures (regression) #345
2015-05-13 10:20:40 +06:00
Sergey Lipskiy
272af69077 Correct CombinerInfo::_compile for 1 cycle mode:
first and second stage of combiner must be the same for 1 cycle mode.
However, sometimes it's not so. It seems that the second stage is used in
such cases.

This correct commit 7c8907407f9.
Fixed issue with menu in F-1 Pole Position, #344
2015-05-13 10:20:39 +06:00
Sergey Lipskiy
d1583b2396 Correct FrameBufferList::renderBuffer -
add check that BlitFramebuffer coordinates are inside the buffer.
2015-05-13 10:20:39 +06:00
Sergey Lipskiy
42e75032fb Correct previous width calculation in VI_UpdateSize().
Now buffers removed when old and new VI width is not zero.

Fixed knockout 2000, issue #294
2015-05-13 10:20:38 +06:00
Sergey Lipskiy
b136d05a3d Correct FrameBufferList::removeBuffer and FrameBufferList::removeBuffer -
null current buffer if removed buffer is the current one.
2015-05-13 10:20:37 +06:00
Sergey Lipskiy
4569c8beb8 Rewrite updateViewport and updateScissor:
use frame buffer scale in case of fb emulation.
2015-05-13 10:20:37 +06:00
Sergey Lipskiy
74612aaa6e Add blend modes for Pokemon Stadium special attacks.
Thanks ace64gamer for info!
2015-05-13 10:20:36 +06:00
Sergey Lipskiy
e4599870f3 Minor corrections in DepthBufferToRDRAM::CopyToRDRAM 2015-05-13 10:20:35 +06:00
Sergey Lipskiy
f96d54bd1f Correct gSPFlushTriangles() to make it compatible with WCW Backstage Assault
Fixed issue #95
2015-05-13 10:20:35 +06:00
Sergey Lipskiy
da0f5afb44 Fix frame buffer usage as background.
Added check that found frame buffer is not depth buffer.

Fixed Nushi Zuri 64, issue #337
2015-05-13 10:20:34 +06:00
Sergey Lipskiy
1715a8a3d0 Fix _copyDepthBuffer().
Fixed LoT in Zelda MM
2015-05-13 10:20:33 +06:00
Sergey Lipskiy
88acd219a0 Add check that depth image is inside RDRAM bound in DepthBufferToRDRAM::CopyToRDRAM 2015-05-13 10:20:32 +06:00
Sergey Lipskiy
81893e5520 Add support for non-ASCII rom names. 2015-05-13 10:20:32 +06:00
Sergey Lipskiy
813408c978 Cache GL_CLIP_DISTANCE0. 2015-05-13 10:20:31 +06:00
Sergey Lipskiy
cfc14c53ec Optimize _calculateCRC() 2015-05-13 10:20:30 +06:00
Sergey Lipskiy
d11f7e0b5e Remove glFinish() from VI_UpdateScreen(). 2015-05-13 10:20:30 +06:00
Sergey Lipskiy
4f338b96c8 Ask for current texture alignment in TextureCache::init(). 2015-05-13 10:20:29 +06:00
Sergey Lipskiy
669976d468 Fix call to glMemoryBarrier. 2015-05-13 10:20:28 +06:00
Sergey Lipskiy
d500d9629d Code cleanup: remove redundant viewport updates from OGLRender::drawRect() and OGLRender::drawTexturedRect() 2015-05-13 10:20:28 +06:00
Sergey Lipskiy
914b23f7db Code cleanup: remove redundant glEnable(GL_SCISSOR_TEST) from FrameBufferList::renderBuffer() 2015-05-13 10:20:27 +06:00
Sergey Lipskiy
cd6e918001 Code cleanup: remove reduntant gDP.changed update in gDPLoadBlock() 2015-05-13 10:20:26 +06:00
Sergey Lipskiy
cfd81e75e6 Remove redundant state changes from OGLRender::_prepareDrawTriangle 2015-05-13 10:20:25 +06:00
Sergey Lipskiy
2514680670 Remove unnecessary calls to ShaderCombiner::updateRenderState() and ShaderCombiner::updateFBInfo() 2015-05-13 10:20:25 +06:00
Sergey Lipskiy
3bc6ea258a Update textures if combiner is changed.
Fixed driver portrait in Roadsters, issue #340
2015-05-13 10:20:24 +06:00
Sergey Lipskiy
9dbbeca65c Code cleanup: Move implementation of static get() functions into .cpp files 2015-05-13 10:20:23 +06:00
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