Sergey Lipskiy
9491633b5f
Fix comlilation on Linux.
2016-11-22 09:40:05 +07:00
Sergey Lipskiy
cc63ed1764
Minor correction in ColorBufferToRDRAM::_prepareCopy
2016-11-21 16:52:26 +07:00
Sergey Lipskiy
a906b769e3
Initialize all members of TexrectDrawer ctor
2016-11-21 16:52:24 +07:00
Sergey Lipskiy
2a9df504df
Add rwidth and rheight initialization in VIInfo ctor.
2016-11-21 16:52:21 +07:00
Sergey Lipskiy
41ff9a8d03
Add m_buffersSwapCount initialization in OGLVideo ctor
2016-11-21 16:52:18 +07:00
Sergey Lipskiy
01b2184272
Correct possible null pointer dereferencing in OGLRender::_updateTextures
2016-11-21 16:52:14 +07:00
Sergey Lipskiy
a140d5ee7b
Fix potential ABR in GBIInfo::loadMicrocode
2016-11-21 16:16:54 +07:00
Sergey Lipskiy
4f73efd634
Correct combinedColorABD and combinedAlphaABD
2016-11-21 15:47:53 +07:00
Sergey Lipskiy
f2b9883681
Correct only dstY0 for lower field.
...
Fixed image jitter in topgear hyperbike
2016-11-20 19:24:34 +07:00
Sergey Lipskiy
1f5bde610a
Another correction for Xoffset
...
Fixed topgear hyperbike heavily flickering (regression) #1240
Hyper Bike has *REG.VI_WIDTH == 1152
ColorImage.width == VI.width == 576
addrOffset is multiple of ColorImage.width,
so addrOffset % (*REG.VI_WIDTH) can be equal to ColorImage.width
and image shifted out of screen.
2016-11-20 19:22:31 +07:00
Sergey Lipskiy
1c94b4720e
Use GetUserDataPath() to determine path when creating gliden64.log #1243
2016-11-20 12:07:15 +07:00
Logan McNaughton
c5c7845294
Check for GL_ARB_shader_image_load_store
...
Image Textures might be available on devices with OpenGL < 4.3 if they support GL_ARB_shader_image_load_store
2016-11-20 11:09:40 +07:00
Sergey Lipskiy
3b9f3a4263
Correct asserts in Textures.cpp
...
Previus conditions not met when texture pack is used.
2016-11-20 11:09:18 +07:00
Sergey Lipskiy
5e639452ec
Make PluginAPI::ReadScreen thread safe.
2016-11-20 11:09:11 +07:00
Sergey Lipskiy
83ff7f9ae5
Implement gSPSelectDL and gSPSelectBranchDL
...
Fixed Nushi Zuri 64 - Shiokaze ni Notte: #1230
2016-11-17 16:47:31 +07:00
Sergey Lipskiy
cf2bce9176
Implement gSPSetStatus.
2016-11-17 16:47:27 +07:00
Sergey Lipskiy
c3caf2747d
Correct wrap/clamp/sign-extend shaders.
...
Fixed Mario Tennis missing fire #1236
2016-11-16 13:16:32 +07:00
Sergey Lipskiy
5d7c02f7d1
Up shader storage version.
2016-11-14 20:53:55 +07:00
Sergey Lipskiy
5e65c115e9
Always ask for GL minor version.
2016-11-14 20:46:24 +07:00
Sergey Lipskiy
be6179cbcc
Revert 263ddf4
because it does not work properly on old PC cards.
2016-11-14 20:45:32 +07:00
Sergey Lipskiy
3e84decd03
Rewrite wrap/clamp shaders.
2016-11-14 17:45:15 +07:00
Francisco Zurita
16262e52ad
Fix some differences between GLES2 and GLES3 code.
2016-11-14 14:01:43 +07:00
oddMLan
6e15de2e09
Fixed blurry icon in main window
...
Handcrafted icon in small sizes for optimal view, main window icon doesn't look blurry anymore
2016-11-14 11:04:24 +07:00
Sergey Lipskiy
1fed809ac0
Fix AA for GL < 4.3
2016-11-14 10:53:21 +07:00
Sergey Lipskiy
23951575a9
Simplify clamp and sign-extend shaders.
2016-11-13 21:35:09 +07:00
Sergey Lipskiy
18248337b4
Up shader storage version.
2016-11-13 19:30:14 +07:00
Sergey Lipskiy
866fe9f7e9
Correct GLES2 HW light.
2016-11-13 19:15:57 +07:00
Sergey Lipskiy
65dee80e7b
Fix color sign-extension and clamping.
...
Details:
https://github.com/gonetz/GLideN64/issues/661
2016-11-13 19:15:53 +07:00
Sergey Lipskiy
47c815b431
Check for GL_MAX_SAMPLES
2016-11-13 11:42:39 +07:00
Sergey Lipskiy
263ddf4baa
Use glTexStorage2DMultisample instead of glTexImage2DMultisample for OpenGL.
...
The same code with GLES3X.
2016-11-13 11:42:14 +07:00
Francisco Zurita
8a92860271
Fix error in GLES2 implementation of LOD.
2016-11-10 02:02:56 -05:00
Logan McNaughton
801490a400
Fix debug build on Linux
2016-11-08 13:34:55 -07:00
Sergey Lipskiy
a68c0da1f8
Fix calc_light shader.
...
Fixed #1215
2016-11-08 13:26:16 +07:00
Logan McNaughton
4745601a74
Silence some compiler warnings
2016-11-07 12:18:26 -07:00
Sergey Lipskiy
7084767836
Fix main window's icon in static GUI lib.
2016-11-07 20:29:22 +07:00
Francisco Zurita
a48e1e37ca
Add support for LOD with GLES2
2016-11-07 16:22:58 +07:00
AmbientMalice
d061ca044d
INI Cleanup
...
Removed redundant async FB copies, and disabled depth buffer copies on Shadow Man to fix pause menu.
2016-11-05 14:53:29 +07:00
Logan McNaughton
51ee866c42
Remove copyDepthToRDRAM from GLideN64.custom.ini
...
Since software depth copy is the default these entries should be removed.
2016-11-04 08:43:40 -06:00
Francisco Zurita
7ca4d0430b
Workaround for devices where glBlitFrameBuffer produces output upside
...
down.
2016-11-04 20:27:55 +07:00
Francisco Zurita
478344ab5f
Fix some issues with multisampling which were causing GL errors
2016-11-04 20:05:23 +07:00
Sergey Lipskiy
fedb3a08a1
Correct N64 color sign-extend:
...
do not sign-extend alpha.
Fixed torches in Paper Mario.
2016-11-04 20:03:34 +07:00
Sergey Lipskiy
ae61e926c9
Change copyDepthToRDRAM default to SoftwareRender.
2016-11-04 14:06:46 +07:00
Sergey Lipskiy
2656436217
Simulate N64 color sign-extend.
2016-11-03 21:24:45 +07:00
Francisco Zurita
472c31986c
Fix GL Errors in Pokemon Stadium 2 minigames.
...
Graphics became corrupt when the GL errors happened. With this change,
graphics no longer become corrupt.
2016-11-03 18:25:18 +07:00
Logan McNaughton
617517737d
Specify a specific CRC function for microcodes
2016-11-03 17:37:40 +07:00
Logan McNaughton
2160f41451
Minor GLSL optimization
...
There is no point setting alphaValue and then potentially changing it, might as well wrap the alternative in an "else" statement
2016-11-03 17:19:41 +07:00
Sergey Lipskiy
1d87a92c72
Do not use frame buffer as texture if the buffer is just allocated.
...
Fixed tripleplay2000: black background in game #346
Problem: The game allocates auxiliary buffer with the same width
as the main one. Plugin detects it as main buffer and set its width
and height as of main buffer. Actual buffer height is half of main
buffer height, but it became known only when game switches to the
main buffer. Wrong buffer height leads to wrong calculation of
buffer address space. Game uses textures with addresses behind
the actual buffer’s address space but within calculated one.
Plugin tries to use buffer texture instead and, as the result,
everything is black.
Solution: The situation is bad. Plugin cannot detect that
allocated buffer is an aux one. I decided to forbid buffer usage
as texture if buffer is new. New buffer is blank, so reading from
it is strange. N64 games do lots of strange stuff, so this solution
is potentially dangerous.
2016-10-29 23:46:39 +07:00
Francisco Zurita
df366f0f6b
Fix verious GL errors in GLES 3.1 mode and Mario tennis.
2016-10-29 19:50:44 +07:00
Sergey Lipskiy
428f3ad637
Add glTexStorage2D to GLFunctions
2016-10-28 21:43:31 +07:00
Sergey Lipskiy
6e460499bf
Correct MSVS project files.
2016-10-28 21:43:06 +07:00