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

1601 Commits

Author SHA1 Message Date
Sergey Lipskiy
16f5bfa423 Use correct screen scale when native resolution used. 2016-03-17 16:05:26 +06:00
Sergey Lipskiy
f6be5fd39f Fix bug with line calculation in gDPLoadBlock.
Fixed South Park Rally (All) - Gfx Issue #391
and probably other similar issues.
2016-03-17 09:29:57 +06:00
Sergey Lipskiy
2a56af9da1 Always update texture for texrect.
Fixed  Star Wars Episode I - Racer (J) Displaying wrong text. #510
The game uses the same CI texture with different palettes.
Each palette produces different set of hieroglyphs from the texture.
Current palette depends on tile index, which is set by tile parameter of texrect.
2016-03-15 15:46:08 +06:00
AmbientMalice
f59518f024 Correct texrectVertexFullAlpha hack description 2016-03-15 10:22:59 +06:00
Sergey Lipskiy
54e0c533e9 Set texrect vertex alpha to 1 for Pokemon Stadium 2.
Texrect vertex alpha was set to 1 for all games in d506d6134d commit as fix for issue #721.
It causes regression in Duke Nukem 64, issue #906,
so I made separate hack and enable it for PS2.
2016-03-14 21:50:33 +06:00
Sergey Lipskiy
0ec6d9d0bd Correct alpha compare. 2016-03-13 19:07:30 +06:00
Sergey Lipskiy
2840c89629 Add optimization hacks for depth buffer read in PD and CBFD:
- read depth buffer only when texturedRectDepthBufferCopy called for current frame
- for Conker, read depth buffer only in texturedRectDepthBufferCopy.
- for PD the buffer need to be read twice, otherwise coronas may poke through objects.
2016-03-13 17:53:08 +06:00
Sergey Lipskiy
444aa8320a Fix depth buffer copy for Perfect Dark. 2016-03-13 17:05:25 +06:00
Sergey Lipskiy
ede0a046c2 Fix DepthBufferToRDRAM::_prepareCopy for Native Resolution mode.
Fixed issue #888.
2016-03-13 17:02:10 +06:00
Sergey Lipskiy
5176e94c58 Fix screenshot capture when fb emulation enabled.
Fixed issue #883
2016-03-12 21:06:42 +06:00
Sergey Lipskiy
072553b3f7 Fix screen scale for LOD when multiple of native resolution is used.
Fixed issue #890
2016-03-12 20:56:44 +06:00
Sergey Lipskiy
a2c39afc19 Fixed crash in RDRAMtoFrameBuffer::CopyFromRDRAM in GLES2 mode. 2016-03-12 20:39:54 +06:00
Sergey Lipskiy
ff67350c8c Revert "Increase only y coordinate of rect in COPY or FILL mode."
because it causes regression in Mischief Makers.

This reverts commit 143a68bc07.
2016-03-12 20:09:34 +06:00
Sergey Lipskiy
9d8ef24777 Code refactor: use std::string instead of plain char buffer in compileCombiner. 2016-03-12 20:09:29 +06:00
Sergey Lipskiy
b7369e905e Correct alpha compare:
- Take into account coverage flags.
  This is still not quite correct without proper coverage emulation.
- Discard pixels with zero alpha if uCvgXAlpha flag is set.
  Resulted pixel coverage is function of pixel alpha multiplied by actual
  coverage in that mode, thus pixel with zero alpha has zero coverage and discarded.

Fixed regression in BAR, issue #866
2016-03-12 20:08:27 +06:00
Francisco Zurita
56f85e02f8 Fix OpenGL ES 3.0 plugin in Nexus 6p 2016-03-11 20:49:51 +06:00
Sergey Lipskiy
913b0e7635 Disable fog for Turbo3D ucode.
Fixed menu text in Dark Rift, issue #648
2016-03-07 15:29:46 +06:00
matto
438f5e327b Adds noisy warning if we can't find Texture Image support
This was confusing me for a while as it would simply fail to find the
proper support and I was confronted with a blank screen in certain areas.
This warning (and the associated change of default. I'd like users to see
warnings as well) will help others figure out why there is a blank screen.

My driver supports the necessary extensions (but not 4.3), so if I force it to
advertise 4.3 support (and glsl 420 support) it will properly render.
I tried to create a patch that only looks for the proper extension, and
it works for me, but I feel as though it would depend on behaviour that
most GL implementations would not implement the same way so I've put
it in a separate branch and probably won't request to merge it.
Mesa should get 4.3 support soon enough anyway, so it shouldn't
be an issue for much longer.
2016-03-07 13:08:59 +06:00
matto
7fb2ad2d5b Fixing what is almost certainly a memory leak 2016-03-07 12:58:49 +06:00
Sergey Lipskiy
675d777e92 Fix windowed modes list initialization in GUI. 2016-03-06 21:23:48 +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
fbbbe147c6 Correct hack for texrect textures.
Fixed texture coordinates for backgrounds in Dark Rift, issue #648
2016-03-05 20:23:00 +06:00
Sergey Lipskiy
67cab52909 Fix tile width calculation in LOADTYPE_TILE mode.
Fixed background textures size in Dark Rift.
2016-03-05 20:09:11 +06:00
Sergey Lipskiy
143a68bc07 Increase only y coordinate of rect in COPY or FILL mode. 2016-03-05 20:06:41 +06:00
Sergey Lipskiy
024c48218a Fix frame buffer texture detection when load tile is not 7.
Fixed wrong frame buffer detection in Tetrispere intro, issue #681
Terisphere uses tile 2 as load-tile and as base tile.
2016-03-05 17:55:30 +06:00
Sergey Lipskiy
29b0b8c1ae Fix mipmaped texture load when gSP.texture.tile is not 0.
Example: Tetrisphere.
2016-03-05 17:51:17 +06:00
Sergey Lipskiy
77b5b737d5 Update texture parameters only if combiner uses textures. 2016-03-05 17:47:53 +06:00
Sergey Lipskiy
7479845a46 Do not use flat shading when lighting is enabled.
Fixed N logo in terisphere.
2016-03-05 13:17:01 +06:00
BenjaminSiskoo
d50d9cc999 Update french language 2016-03-04 11:09:30 +06:00
Sergey Lipskiy
d9d6d4530a FrameBuffer::init - clear buffer texture after allocation.
Fixed garbage on screen in some games on Linix, e.g. Tsumi To Batsu.
2016-03-04 10:58:52 +06:00
Sergey Lipskiy
095df6e3e5 Code refactor: OGLRender::clearColorBuffer use black (zero) if color is not specified. 2016-03-04 10:53:44 +06:00
Sergey Lipskiy
235530cec8 Fix out of range read/write in _copyPixelsFromRdram when address in input array is outside of current frame buffer. 2016-03-01 16:49:54 +06:00
Sergey Lipskiy
8f952921a0 Use 32bit texture formats for G_TT_IA16 mode. 2016-03-01 16:49:43 +06:00
Sergey Lipskiy
e58ce1e758 Code cleanup: make struct TextureLoadParameters more readable. 2016-03-01 16:48:35 +06:00
Sergey Lipskiy
53203c048a Fix IA88_RGBA4444 convertor on non-windows platforms.
Fixed issue #280 and issue #759
2016-03-01 16:48:18 +06:00
IlDucci
33824877cc Updating Spanish translation
Updating Spanish translation, adding the newest strings and editing some
old ones.
2016-03-01 16:48:01 +06:00
Sergey Lipskiy
5e5c3faed4 Fix flat shading.
Fixed 2D tokens in Tetrispere.
2016-02-28 23:47:26 +06:00
Sergey Lipskiy
bcdc6bc6a5 Correct mipmap shader.
Fixed Tetrisphere blending or texture issue on Mr. Education'sphere #682
2016-02-28 21:53:55 +06:00
Sergey Lipskiy
3215a8ad5d Correct main bufer height calculation.
Fixed flicker in Bomberman Hero (E) , issue #305
2016-02-28 17:45:53 +06:00
Sergey Lipskiy
1c0a1c23af correct CMakeLists.txt 2016-02-28 11:03:05 +06:00
Sergey Lipskiy
9814c72544 Add 'custom windowed resolution' option to GUI. 2016-02-27 19:12:54 +06:00
Sergey Lipskiy
676e00f19b Add "Render at constant factor of native resolution" option to GUI. 2016-02-27 13:41:29 +06:00
Sergey Lipskiy
54d486371a Add "UseNativeResolutionFactor" option. 2016-02-27 12:43:20 +06:00
Sergey Lipskiy
162d24dc40 Remove if (!_canDraw()) from OGLRender::clearColorBuffer 2016-02-27 12:17:36 +06:00
Sergey Lipskiy
f06b2d823a Code rafactor to fix compilation errors with mupen64plus build. 2016-02-27 11:58:56 +06:00
Sergey Lipskiy
c4b0e9999e Fix copy from RDRAM in widescreen mode. 2016-02-27 10:52:12 +06:00
Sergey Lipskiy
2a01d47df4 Fix copy to RDRAM in widescreen mode. 2016-02-27 10:52:11 +06:00
Sergey Lipskiy
8b3d53f4e5 Pass destination frame buffer to OGLRender::drawTexturedRect.
Fixed RDRAMtoFrameBuffer::CopyFromRDRAM, when FBWrite writes to a buffer,
which is not current displayed buffer.
Example: JFG crosshair.
2016-02-27 10:52:10 +06:00
Sergey Lipskiy
e8d76d21f0 Minor code cleanup: add RDRAMtoFrameBuffer::Reset() 2016-02-27 10:52:10 +06:00
Sergey Lipskiy
806f884a51 Add FBInfo controls to GUI. 2016-02-27 10:52:09 +06:00