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

3567 Commits

Author SHA1 Message Date
Sergey Lipskiy
c282045c27 Fix combiner for G_CYC_FILL cycle type.
That fixes regression in frame buffer backgrounds in Mario Tennis.
2015-05-13 10:12:07 +06:00
Sergey Lipskiy
b220cb6e84 Fix combiner inputs detection for second stage. 2015-05-13 10:12:06 +06:00
Sergey Lipskiy
e784ea7205 GLES2 fixes in frame/depth buffer initialization. 2015-05-13 10:12:05 +06:00
Sergey Lipskiy
14168d3ddc Fix compilation issues in shaders. 2015-05-13 10:12:05 +06:00
Sergey Lipskiy
0144af7cc0 Remove update of frame buffer and depth related uniforms from GLSLCombiner::UpdateColors. 2015-05-13 10:12:04 +06:00
Sergey Lipskiy
898a189f89 Fixed Combiner_UpdateCombineFBInfo() call. 2015-05-13 10:12:03 +06:00
Sergey Lipskiy
c95bb33216 Correct frame buffer height calculation in FillRect.
It was broken in commit a9064e14f3a40

Mario Tennis works again.
2015-05-13 10:12:03 +06:00
Sergey Lipskiy
16bd31388e Fix scissor. 2015-05-13 10:12:02 +06:00
Sergey Lipskiy
994e961db2 Correct alpha compare and alpha/color dither with noise. 2015-05-13 10:12:01 +06:00
Sergey Lipskiy
dd522d123c Correct SDL surface pixelformat detection. 2015-05-13 10:12:01 +06:00
Sergey Lipskiy
25e9bdb301 Remove OGL_UpdateScale() call from OGL_Start(). 2015-05-13 10:12:00 +06:00
Sergey Lipskiy
88c9eb4419 Correct config load for Android. 2015-05-13 10:11:59 +06:00
Sergey Lipskiy
51505d99a0 Add includes for Android build. 2015-05-13 10:11:59 +06:00
Sergey Lipskiy
46560797b1 Add Windows declaration for glDepthRangef and glClearDepthf. 2015-05-13 10:11:58 +06:00
Sergey Lipskiy
79a5a140fe Make shaders GLES2 compatible. 2015-05-13 10:11:57 +06:00
Sergey Lipskiy
f95c7e4af0 Correct tag in LOG. 2015-05-13 10:11:57 +06:00
Sergey Lipskiy
97e45b1de0 Switch back to Orkin's method of setting depth paramethers. 2015-05-13 10:11:56 +06:00
Sergey Lipskiy
40e42fc4bd Correct depth_compare() shader. 2015-05-13 10:11:55 +06:00
Sergey Lipskiy
84b3f74bea Corrected depth compare enabling with N64DepthCompare. 2015-05-13 10:11:55 +06:00
Sergey Lipskiy
6fbb1076d1 Fix shadow map program initialization:
missing attribute location binding.
2015-05-13 10:11:54 +06:00
Sergey Lipskiy
a234cd3471 Switch to Orkin's blend function. Rice's one has problem with transparency in BAR. 2015-05-13 10:11:53 +06:00
Sergey Lipskiy
5bc5c21e34 Fix set uK4 and uK5 unioforms. 2015-05-13 10:11:53 +06:00
Sergey Lipskiy
f591a3a162 Use uniform variable instead of gl_Fog.color in shadow_map_fragment_shader 2015-05-13 10:11:52 +06:00
Sergey Lipskiy
de7684827f Use GLES2 compatible texture types. 2015-05-13 10:11:51 +06:00
Sergey Lipskiy
1011be1827 Fix (hopefuly) swap buffer on Android. 2015-05-13 10:11:50 +06:00
Sergey Lipskiy
215a15f0df Add missing interface function. 2015-05-13 10:11:50 +06:00
Sergey Lipskiy
024ab902dd Minor fix in Android.mk 2015-05-13 10:11:49 +06:00
Sergey Lipskiy
3e16b56a32 Add sdl_compat.h 2015-05-13 10:11:48 +06:00
Sergey Lipskiy
df07210454 Disable unused(?) frame buffer statuses. 2015-05-13 10:11:48 +06:00
Sergey Lipskiy
f68492f448 Fix OGL_ReadScreen for GLES2. 2015-05-13 10:11:47 +06:00
Sergey Lipskiy
2a991ed741 Disable glMemoryBarrier call for GLES2 2015-05-13 10:11:46 +06:00
Sergey Lipskiy
6c2c90b097 Remove glDepthRange use.
Code format.
2015-05-13 10:11:46 +06:00
Sergey Lipskiy
249338ac64 Fix GLES2 OGL initialization . 2015-05-13 10:11:45 +06:00
Sergey Lipskiy
a636842d50 Fix OGL.bImageTexture initialization for GLES2 2015-05-13 10:11:44 +06:00
Sergey Lipskiy
03fffbd759 Reemove GLInfo.maxTextureUnits usage 2015-05-13 10:11:44 +06:00
Sergey Lipskiy
e8e1515fa6 Fix TransformVectorNormalize().
Fixed Mario's red eye caused by incorrect work of TransformVectorNormalize()
2015-05-13 10:11:43 +06:00
Sergey Lipskiy
7d195d7202 Code cleanup in Normalize() 2015-05-13 10:11:42 +06:00
Sergey Lipskiy
bf168bad0c Fix crash on loadstate. 2015-05-13 10:11:42 +06:00
Sergey Lipskiy
7166d0aacf Fix hardware lighting. 2015-05-13 10:11:41 +06:00
Sergey Lipskiy
af839dfa90 Attempt to fix noise. 2015-05-13 10:11:40 +06:00
Sergey Lipskiy
3d9e48230a Fix FrameBuffer_RenderBuffer for GLES2. 2015-05-13 10:11:39 +06:00
Sergey Lipskiy
caf4353295 Guard GLES2 incompatible code in FrameBuffer.cpp and gSP.cpp 2015-05-13 10:11:39 +06:00
Sergey Lipskiy
889b889847 Replace GL_DRAW_FRAMEBUFFER by GL_FRAMEBUFFER in GLES2 compatible code. 2015-05-13 10:11:38 +06:00
Sergey Lipskiy
90f8e4c2f3 Remove glDisable( GL_FOG ). 2015-05-13 10:11:37 +06:00
Sergey Lipskiy
6219ee02bf Rewrite RDRAMtoFrameBuffer::CopyFromRDRAM
Use OGL_DrawTexturedRect to render the texture.
2015-05-13 10:11:37 +06:00
Sergey Lipskiy
680d939588 Correct enable/disable SC_STSCALED VertexAttribArray. 2015-05-13 10:11:36 +06:00
Sergey Lipskiy
2b0d6e8f1d Make FrameBuffer_AttachDepthBuffer() GLES2 compatible. 2015-05-13 10:11:35 +06:00
Sergey Lipskiy
f00ca5f0a1 Replace glFramebufferTexture by GLES2 compatible glFramebufferTexture2D. 2015-05-13 10:11:35 +06:00
Sergey Lipskiy
69012cbe09 Fix compilation with optimization *_OPT options enabled. 2015-05-13 10:11:34 +06:00
Sergey Lipskiy
995d2d5775 Fix Android compilation of 3DMath. 2015-05-13 10:11:33 +06:00