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

286 Commits

Author SHA1 Message Date
Sergey Lipskiy
ab33c41f08 Explicitly specify that constants are unsigned int in OpenGL.h 2015-05-13 10:12:29 +06:00
Sergey Lipskiy
74ff919934 Replace MS __try by standard try. 2015-05-13 10:12:29 +06:00
Sergey Lipskiy
69d580b40a Use time() instead of Windows timeGetTime(). 2015-05-13 10:12:28 +06:00
Sergey Lipskiy
bdb221b6ac Refactor: replace define WIN32 by WIN32_ASM
since it is used for MSVS style asm code only.
2015-05-13 10:12:27 +06:00
Sergey Lipskiy
b73cf262f1 Code cleanup: Remove unused noise texture from Textures.h 2015-05-13 10:12:27 +06:00
Sergey Lipskiy
5b48a5db49 Make CombinerInfo sigleton. 2015-05-13 10:12:26 +06:00
Sergey Lipskiy
fd63ee2b64 Code cleanup: remove unused define SetConstant form Combiner.h 2015-05-13 10:12:25 +06:00
Sergey Lipskiy
a432f32e08 Code cleanup: Remove unused structure "vertex" from struct CombinerInfo 2015-05-13 10:12:25 +06:00
Sergey Lipskiy
ca836526df Code cleanup: Remove unused declarations from GLSLCombiner.h 2015-05-13 10:12:24 +06:00
Sergey Lipskiy
f6955e8673 Fix depth buffer based fog detection. 2015-05-13 10:12:23 +06:00
Sergey Lipskiy
9fda06ffa4 Fix CheckForFrameBufferTexture: don't test frame buffer content if
copyToRDRAM is on
or copyDepthToRDRAM is on and frame buffer was cleared by depth buffer clear value.
2015-05-13 10:12:23 +06:00
Sergey Lipskiy
4d3df31a56 Fix CheckForFrameBufferTexture(...) for depth buffer:
don't test frame buffer content if frame buffer is depth buffer,
because of DepthCopyToRDRAM
2015-05-13 10:12:22 +06:00
Sergey Lipskiy
8d84af1257 Disable HW light calculation for RECTs. 2015-05-13 10:12:21 +06:00
Sergey Lipskiy
36707d79e2 Fix NOISE input in combiners. 2015-05-13 10:12:21 +06:00
Sergey Lipskiy
92eb61572e Fix scissor related problems:
- scissor dissable/enable in FrameBuffer_RenderBuffer()
- scissor height in OGL_UpdateStates()
2015-05-13 10:12:20 +06:00
Sergey Lipskiy
8f9584440e Fix stupid typo in _setFV2Uniform and _setIV2Uniform.
The typo caused write out of array bounds, which lead to wrong work of shaders.
2015-05-13 10:12:19 +06:00
Sergey Lipskiy
4ab3c1e1ed Fix adress correction condition in gDPSetTile. 2015-05-13 10:12:19 +06:00
Sergey Lipskiy
7d30e80d78 Fix gSPCullVertices. 2015-05-13 10:12:18 +06:00
Sergey Lipskiy
deed5ecd01 Restore wrongly removed triangle clipping. 2015-05-13 10:12:17 +06:00
Sergey Lipskiy
1b084dfd7b Support enableLOD config option. 2015-05-13 10:12:16 +06:00
Sergey Lipskiy
fefe01d88d Add "enable noise" and "enable HW lighting" to MupenPlus config. 2015-05-13 10:12:16 +06:00
Sergey Lipskiy
7a63f0e1a1 Add traces for shaders errors 2015-05-13 10:12:15 +06:00
Sergey Lipskiy
9e534aa418 Fix blend mode for cycleType == G_CYC_FILL
It was broken in commit 59d43c05a:
Rewrite OpenGL functionality using GLES2 compatible functions.
2015-05-13 10:12:14 +06:00
Sergey Lipskiy
d29c149515 Fix MupenPlus port: Use MupenPlus style Video initialization. 2015-05-13 10:12:14 +06:00
Sergey Lipskiy
aba7a97594 VS 2010 mupenplus project 2015-05-13 10:12:13 +06:00
Sergey Lipskiy
c685853874 Add MupenPlus profile for VS 2005 project 2015-05-13 10:12:12 +06:00
Sergey Lipskiy
61ff69847a Add FB settings to mupen config. 2015-05-13 10:12:12 +06:00
Sergey Lipskiy
3ec5e21647 Fix windows compilation for Mupen64Plus 2.0 2015-05-13 10:12:11 +06:00
Sergey Lipskiy
277b26cec2 Fix DepthBuffer_ClearBuffer() broken in commit fd478866.
Fixed fog issue in BAR.
2015-05-13 10:12:10 +06:00
Sergey Lipskiy
28a1d19458 Correct color and alpha dithering.
Fixed regression in Zelda MM motion blur, introduced in commit 25c04829.
2015-05-13 10:12:10 +06:00
Sergey Lipskiy
a3f9fe2186 Disable scissor in FrameBuffer_RenderBuffer(). 2015-05-13 10:12:09 +06:00
Sergey Lipskiy
adc8473f98 Fix texture coordinates calculation for frame buffer textures.
Shadows in Mario Tennis fixed.
2015-05-13 10:12:08 +06:00
Sergey Lipskiy
47d322741d Correct condition for calling Combiner_UpdateAlphaTestInfo(). 2015-05-13 10:12:08 +06:00
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