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

1987 Commits

Author SHA1 Message Date
IlDucci
a3760c9ba8 Updating Spanish translation
Updated Spanish translation based on the latest changes. Might need some
checking (Seems I've used an older version of the TS format).
2016-11-28 22:50:25 +07:00
Sergey Lipskiy
bd49fff7a6 Change gSP.lookat default state.
Fixed G_TEXTURE_GEN doesn't work correctly (HLE)! #1232
2016-11-28 22:35:46 +07:00
Sergey Lipskiy
6735db1322 ColorBufferToRDRAM: re-create pixel buffers when FBO texture changed. 2016-11-28 21:17:49 +07:00
Francisco Zurita
fc0c77a07b Neon version of InverseTransformVectorNormalize 2016-11-26 13:23:50 -05:00
Sergey Lipskiy
9957622ae4 Code cleanup: remove obsolete hack for Nushi Zuri 64 - Shiokaze ni Notte
Fixed #1257
2016-11-26 19:36:02 +07:00
Sergey Lipskiy
6af6e2c17f Rewrite lighting.
Fixed chopper attack wrong textures #99
Thanks Gillou68310 for detection of the problem's origin.
2016-11-26 19:31:50 +07:00
Sergey Lipskiy
2e343f4d87 Code cleanup: Remove unused Transpose3x3Matrix 2016-11-26 19:29:38 +07:00
Sergey Lipskiy
3aa365d24a Rebuild pixel buffers in ColorBufferToRDRAM_BufferStorageExt when
_initBuffers called more than once.

Example: Roadster trophy chages buffer size several times on the game start.
Each time ColorBufferToRDRAM_BufferStorageExt::_initBuffers called.
The game raises GL error on the second _initBuffers call.
2016-11-26 19:25:06 +07:00
Sergey Lipskiy
3ac20d99c1 Enable hack_noDepthFrameBuffers for Roadster trophy.
Roadster trophy demo mode has problem: car has no wheels.
The game does wierd trick: it allocates depth buffer,
but uses only low half of it for depth values.
Upper half used as common memory.
Wheels texture loaded into that memory area (inside depth buffer area!).
Since depth buffer updated dynamicaly, its validity can not be tested.
Thus, buffer considered as valid and frame buffer texture is used instead of wheel texture.

Fixed #1258
2016-11-26 19:21:54 +07:00
Sergey Lipskiy
b32d8020bb Add black column in output as solution for "Last column problem." #1246 2016-11-24 14:38:02 +07:00
Francisco Zurita
313741d827 Use BufferStorage extension for faster glReadPixels. 2016-11-24 14:20:43 +07:00
Francisco Zurita
bc00985f33 Log isGlError using LOG instead of fprintf. 2016-11-23 00:25:32 -05:00
Francisco Zurita
20e4f972aa Use glTexStorage2D for textures being attached to FBOs
But only for GLES 3.0 and 3.1, with OpenGL it causes issues for older
versions.
2016-11-23 00:23:19 -05:00
Francisco Zurita
b3b8eeb83e Use configured FBO texture formats in more places. 2016-11-23 00:14:15 -05:00
Logan McNaughton
ad77e3db52 Remove some GLES3_1 ifdefs 2016-11-22 12:59:15 +07:00
Sergey Lipskiy
96fc2b7f35 Fix Uninitialized variable use in lq2xS_32_def 2016-11-22 12:26:52 +07:00
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