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

97 Commits

Author SHA1 Message Date
Sergey Lipskiy
5b1a50ecb7 Set OpenGL context major and minor version in OGLVideoMupenPlus::_setAttributes() 2015-05-14 11:45:41 +06:00
Sergey Lipskiy
82a2d65018 Update Mupen64Plus interface headers. 2015-05-14 11:27:44 +06:00
Sergey Lipskiy
d7d22f2821 Fix compilation for Android. 2015-05-13 12:26:36 +06:00
Sergey Lipskiy
98c9303cdc Don't change texture Wrap mode if it has mirror flag.
Fixed Perfect Dark lights glitch depending on angle #516
2015-05-13 10:22:39 +06:00
Sergey Lipskiy
7741138775 Simplify OGLRender::drawTexturedRect : process texcoords in a cicle. 2015-05-13 10:22:38 +06:00
Sergey Lipskiy
98c4f06a77 Simplify OGLRender::_updateStates 2015-05-13 10:22:38 +06:00
Sergey Lipskiy
e758303e74 Code refactor: replace GLSLCombiner::usesT0() and GLSLCombiner::usesT1()
by GLSLCombiner::usesTile(_t)
2015-05-13 10:22:37 +06:00
Sergey Lipskiy
011ba09252 Code refactor: rename GLSLCombiner::usesTex() to usesTexture() 2015-05-13 10:22:36 +06:00
Sergey Lipskiy
5700ec8e54 Add Polish translation to the GLideNUI project. 2015-05-13 10:22:35 +06:00
Sergey Lipskiy
2e0389e72e Load config before About dialog call to get info about current translation. 2015-05-13 10:22:35 +06:00
Sergey Lipskiy
73fcf8d551 Move TextureCache::m_curUnpackAlignment initialization to TextureCache::_addTexture
Mupen64plus set GL_UNPACK_ALIGNMENT to 1 after TextureCache::init().
When TextureCache set GL_UNPACK_ALIGNMENT back to value obtained in init(),
it broke text in mupen64plus messages.
2015-05-13 10:22:34 +06:00
Sergey Lipskiy
fc8a000616 Fix RDRAMSize for non-Windows platforms. 2015-05-13 10:22:33 +06:00
Sergey Lipskiy
2feb8a24dd Use glTexStorage2DMultisample for GLES3_1 2015-05-13 10:22:33 +06:00
Sergey Lipskiy
d46ed98804 Fix wrong set of CHANGED_TEXTURE flag. 2015-05-13 10:22:32 +06:00
Sergey Lipskiy
13d53a0dde Set CHANGED_TILE flag in gDPSetTile.
Fixed Banjo Tooie: certain textures change/shift #499
2015-05-13 10:22:31 +06:00
Sergey Lipskiy
e685cbc83c Rewrite mipmap shader.
Less if().
2015-05-13 10:22:31 +06:00
Sergey Lipskiy
09837f88d4 Replace int uniforms uFb8Bit, uFbFixedAlpha by ivec2 ones. 2015-05-13 10:22:30 +06:00
Sergey Lipskiy
6c062c8232 Replace uniforms uMSTex0Enabled, uMSTex1Enabled by vector uniform uMSTexEnabled. 2015-05-13 10:22:29 +06:00
Sergey Lipskiy
7f9a3973eb Do not use textureLod for fetching normal textures. It kills anisotropic filtering:
https://www.opengl.org/wiki/Sampler_(GLSL)
Also need to keep in mind issue #232 and not allow mip-mapping for combiners,
which do not use it.

Fixed anisotropic filtering not working #505
2015-05-13 10:22:29 +06:00
Sergey Lipskiy
49efba0ce6 Correct RDRAMtoFrameBuffer::CopyFromRDRAM -
need to update combiner's FBInfo before use.
2015-05-13 10:22:28 +06:00
Sergey Lipskiy
eabbd252f8 Change CachedTexture::frameBufferTexture type to enum.
Need to separate one-sampled frame buffer textures from multosampled ones.
2015-05-13 10:22:27 +06:00
Sergey Lipskiy
dbbb7da427 Move _isMarioTennisScoreboard() from FrameBufferList to FrameBuffer. 2015-05-13 10:22:26 +06:00
Sergey Lipskiy
663a0d76f1 Implement multisampled textures fetch in shaders.
Thanks mudlord for the idea.

Fixed Perfect Dark frame buffer effects do not work when FSAA is on. #244
2015-05-13 10:22:26 +06:00
Sergey Lipskiy
b728ab97a7 Disable multisampling related code for GLES below 3.1 2015-05-13 10:22:25 +06:00
Sergey Lipskiy
f754943515 Disable use of depth_compare_shader for platforms, which do not support GL_IMAGE_TEXTURES_SUPPORT 2015-05-13 10:22:24 +06:00
Sergey Lipskiy
1437eb030a Define internal format for depth texture for GLES3 2015-05-13 10:22:23 +06:00
Sergey Lipskiy
d1a16d0a12 Fix memcpy not found on Android. 2015-05-13 10:22:23 +06:00
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
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