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

1139 Commits

Author SHA1 Message Date
Sergey Lipskiy
e9564caaab Disable zelda_monochrome_fragment_shader for platforms without GL_IMAGE_TEXTURES_SUPPORT 2015-05-13 10:22:22 +06:00
Sergey Lipskiy
aac3c036dc Add define for shader version string. 2015-05-13 10:22:22 +06:00
Sergey Lipskiy
37963159e4 Fix texturedRectShadowMap for platforms without GL_IMAGE_TEXTURES_SUPPORT 2015-05-13 10:22:21 +06:00
Sergey Lipskiy
81c003a872 Add GLES3 headers include to OpenGL.h 2015-05-13 10:22:20 +06:00
Sergey Lipskiy
f95804db92 Fix vertex_shader_notex for GLES 2015-05-13 10:22:20 +06:00
Sergey Lipskiy
e819e3cf65 Remove obsolete code from Textures.h 2015-05-13 10:22:19 +06:00
Sergey Lipskiy
09b78ea577 Replace define GLES3 by GLES3_1 since current code is GLES3.1 compatible.
GLES3 is different.
2015-05-13 10:22:18 +06:00
Sergey Lipskiy
a550f70330 Add extern "C" for functions in glState.h
Thanks Gillou68310 for hint.
2015-05-13 10:22:18 +06:00
Sergey Lipskiy
243e186ba2 Correct internal format for DepthBufferToRDRAM color texture. 2015-05-13 10:22:17 +06:00
Sergey Lipskiy
d3f6754cff Correct depth texture intarnal format for GLES3 2015-05-13 10:22:16 +06:00
Sergey Lipskiy
0a89aa9f77 Make Shaders GLES3.1 compatible. 2015-05-13 10:22:16 +06:00
Sergey Lipskiy
e4e6c277da Fix fragment shader creation for GLES. 2015-05-13 10:22:15 +06:00
Sergey Lipskiy
c53dac8fa7 Temporal stub for PluginAPI::FindPluginPath 2015-05-13 10:22:14 +06:00
Sergey Lipskiy
107a81d079 Don't init from/to RDRAM objects when frame buffer emulation is off. 2015-05-13 10:22:14 +06:00
Sergey Lipskiy
94ec380bc8 Use GL_R16 as internal type for unsigned short textures for GL and
GL_R16UI for GL ES.
2015-05-13 10:22:13 +06:00
Sergey Lipskiy
a68db29c28 Remove Android project. Mupen64Plus AE uses main android makefile. 2015-05-13 10:22:12 +06:00
Sergey Lipskiy
0f8f8c3834 Move video_api_export.ver to mupenplus folder. 2015-05-13 10:22:12 +06:00
Sergey Lipskiy
4e4f0d1bf3 Replace 1D textures by 2D ones 2015-05-13 10:22:11 +06:00
Sergey Lipskiy
01807a0499 Fix FrameBuffer_CopyDepthBuffer: return false for GLES2 case. 2015-05-13 10:22:10 +06:00
Sergey Lipskiy
12102146f1 Add TxFilterStub.cpp for GL ES.
Temporal solution to avoid compilation errors.
2015-05-13 10:22:10 +06:00
Sergey Lipskiy
759578ff14 Replace TextDrawer by TextDrawerStub for GL ES. 2015-05-13 10:22:09 +06:00
Sergey Lipskiy
2bf72ab833 Correct filename case in includes. 2015-05-13 10:22:08 +06:00
Sergey Lipskiy
6afe5fe30c Disable anisotropy for GL ES 2015-05-13 10:22:08 +06:00
Sergey Lipskiy
ded889350c Remove use of obsolete texture type GL_LUMINANCE8_ALPHA8. 2015-05-13 10:22:07 +06:00
Sergey Lipskiy
2f2a22ee48 Move video_api_export.ver to projects/android folder. 2015-05-13 10:22:06 +06:00
Sergey Lipskiy
f7b27138d8 Enable GL_IMAGE_TEXTURES_SUPPORT for GLES3 2015-05-13 10:22:06 +06:00
Sergey Lipskiy
a02d284645 Use glTexStorage2DMultisample instead of glTexImage2DMultisample in case of GLSE3 2015-05-13 10:22:05 +06:00
Sergey Lipskiy
70b1b9ad03 Replace glMapBuffer by GLES3 compatible glMapBufferRange. 2015-05-13 10:22:04 +06:00
Sergey Lipskiy
82ce16f5fc Add new defines: GLESX for any GL ES version and GLES3 for GL ES 3.1
Guard GL ES incompatible code with GLESX
2015-05-13 10:22:03 +06:00
Sergey Lipskiy
bd5740ea3d Disable GL_CLIP_DISTANCE for GLES 2015-05-13 10:22:03 +06:00
Sergey Lipskiy
d894d465c1 Correct android project:
- enable c++11
- switch to GLES3
- change module name
2015-05-13 10:22:02 +06:00
Sergey Lipskiy
e8d8ee93e4 Correct RSP_SegmentToPhysical
Fixed Glover crash after intro #474
2015-05-13 10:22:01 +06:00
Sergey Lipskiy
bbc71c3f0a Fix crash in FrameBufferToRDRAM::CopyToRDRAM when current buffer is NULL.
Fixed Snowboard Kids causes segmentation fault #477
2015-05-13 10:22:01 +06:00
Sergey Lipskiy
cd0c74dff0 Enable translations for About dialog. 2015-05-13 10:22:00 +06:00
Sergey Lipskiy
5329a2a01b Fix txPath save/load.
Fixed Texture pack path not saved correctly #456
2015-05-13 10:21:59 +06:00
Sergey Lipskiy
a1fdd33389 Add Portuguese and Spanish translations to project file. 2015-05-13 10:21:59 +06:00
Sergey Lipskiy
143cee1712 Disable rendering when config dialog is open to prevent plugin crash if
new settings are incompatible with the current ones.
2015-05-13 10:21:58 +06:00
Sergey Lipskiy
831b3410ed Correct settings section creation for mupen64plus. 2015-05-13 10:21:58 +06:00
Sergey Lipskiy
36ae8b6eb6 Fix settings.hacks restore. 2015-05-13 10:21:57 +06:00
Sergey Lipskiy
29ab85fcc2 Fix frame buffer being bloomed twice. 2015-05-13 10:21:56 +06:00
Sergey Lipskiy
05b92c11bb Apply scissor for post-processed frame buffer area.
Fixed overexposed areas for games with black boarders.
2015-05-13 10:21:55 +06:00
Sergey Lipskiy
a567a880fc Add Italian translation to GLideNUI project file. 2015-05-13 10:21:55 +06:00
Sergey Lipskiy
d95103d3d1 Correct condition for mip-mapped textures filtering in 3 point filter mode. 2015-05-13 10:21:54 +06:00
Sergey Lipskiy
ced78db2b8 Minor code cleanup in ShaderCombiner::ShaderCombiner. 2015-05-13 10:21:53 +06:00
Sergey Lipskiy
e60e09922f Correct 'credits' section in About dialog. 2015-05-13 10:21:53 +06:00
Sergey Lipskiy
0c886e26c3 Limit depth buffer copy to RDRAM with top and bottom bounds of fillrect command.
Fixed regression issues #436 and #437
Issue #330 with Roadsters is fixed too.
2015-05-13 10:21:52 +06:00
Sergey Lipskiy
b205529aec Revert "Don't copy depth buffer to RDRAM if it was not cleared completly."
This commit causes 2 regressions: #436, #437
Better solution needed.

This reverts commit 8b551549e0ca5ece29c5322cb062e8a9bc11e48e.
2015-05-13 10:21:51 +06:00
Sergey Lipskiy
3fa7756fd9 Implement internalization suppport. 2015-05-13 10:21:51 +06:00
Sergey Lipskiy
4d87fb6833 Impelent new fb validity check method:
copy RDRAM content to a buffer and compare by content.
2015-05-13 10:21:50 +06:00
Sergey Lipskiy
4b1114a113 Fix texture ShiftScale calculation.
Pokemon Stadium missing ground texture #412 reveals the problem:
the game loads the same texture into tile0 and tile1.
The only difference is ShiftScale values.
Since the checksum is the same, the same CachedTexture is used for both tiles.
Shift scale correction ovrwrites ShiftScale for tile0 when tile1 is loaded.
Thus, texture coordinates for both tiles will be same.
Combiner uses (tile0-tile1)*env_a+shade. Since t0==t1, texture component is missing.

Solution: calculate ShiftScale for each tile right before use.

Fixed #412
2015-05-13 10:21:49 +06:00