1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-06-30 08:24:05 +00:00
Commit Graph

76 Commits

Author SHA1 Message Date
Blake Warner
0255e10db6 native port 2022-01-29 17:22:09 -05:00
Sergey Lipskiy
e9a6f258af Apply mask on DMEM address to avoid segmentation fault in Indiana Jones,
see #2628
2022-01-08 11:22:42 +07:00
Sergey Lipskiy
506f263c13 Correct imageW/imageH calculation in ObjCoordinates again.
fixes #2617 RE2 bottom of the screen is being cut off
2021-12-19 20:53:09 +07:00
Sergey Lipskiy
b2f3caa1a4 Revert "Shift S2DEX background texture coordinates in non-native resolutions."
This reverts commit e0d5b0be7b.

fixes #2625 Majora's Mask misplaced blur
2021-12-19 20:46:16 +07:00
Sergey Lipskiy
727639c8ba Fix gDP.m_texCoordBounds validity. 2021-12-05 15:18:51 +07:00
s2s
337e96d3b0 Use texture coordinate bounds for s2dex one-piece backgrounds 2021-12-05 15:18:51 +07:00
s2s
e0d5b0be7b Shift S2DEX background texture coordinates in non-native resolutions. 2021-11-26 19:14:37 +07:00
s2s
865e9b443e Fix S2DEX one-piece backgrounds 2021-11-26 19:14:36 +07:00
Sergey Lipskiy
a44b58add1 Fix warnings.
refs #2428
2021-01-05 14:17:58 +07:00
Sergey Lipskiy
78c89fbbfd Fix some of PVS-Studio warnings. 2020-11-14 20:00:19 +07:00
Sergey Lipskiy
46c65776a0 Code refactor and cleanup:
* type cast fixes
* signed/unsigned fixes
* code formatting fixes
* class members initialization fixes
2020-11-14 16:54:28 +07:00
Sergey Lipskiy
ddd93673d8 Fixed some undefined behaviour errors found in #2364 2020-11-14 16:50:50 +07:00
Sergey Lipskiy
9eddde6e0f Fix "division by zero" issue in gSPObjSprite.
Fixed #2192 Unknown memory action on Magical Tetris Challenge
2020-04-11 14:57:50 +07:00
Francisco Zurita
c06c593eba Improve logging information 2019-04-23 11:15:41 +07:00
Sergey Lipskiy
3d74542d24 Correct geometry mode update for Turbo3D.
Fixed glitches in Dark Rift, #2033
2019-04-03 21:32:50 +07:00
Sergey Lipskiy
af63737012 Avoid division by zero in ObjCoordinates ctor due to wrong data in _pObjSprite.
Fixed crash in Glover 2 intro.
2019-03-23 18:11:07 +07:00
Sergey Lipskiy
6041b47271 Fix Insert Matrix moveword command.
Fixed Sim City 64 HLE City Rendering Issue #1200
2019-03-11 22:10:28 +07:00
Sergey Lipskiy
3704b37c3e Fix some of PVS-Studio warnings. 2019-03-03 11:47:10 +07:00
Sergey Lipskiy
ea27c6bd21 Correct code, which forces OnePiece mode for backgrounds.
Code cleanup.

Fixed STARCRAFT 64: does not work with one piece option #2013
2019-02-24 18:42:56 +07:00
Sergey Lipskiy
edd83fdb76 Code cleanup: rename variables in F5INDI_RebuildAndAdjustColors 2019-02-20 18:00:46 +07:00
Sergey Lipskiy
cd4535025d An optimization in F5INDI_CalcST 2019-02-17 15:39:39 +07:00
Sergey Lipskiy
78e98d880b Fix primitive depth for particles in Factor5 ucodes. 2019-02-04 18:30:05 +07:00
Sergey Lipskiy
f79f8d406a Add bgMode config setting. 2019-02-02 19:10:50 +07:00
Sergey Lipskiy
be069adb1f Fix gSPObjSprite for S2DEX ver 1.03
Fixed speedometer in GT 64.
2019-02-02 18:34:13 +07:00
Sergey Lipskiy
b62734d297 Use ValueKeeper for RSP.LLE flag 2019-02-02 18:34:12 +07:00
Sergey Lipskiy
dcd159dc71 Enable texrect drawer in BG commands when enableNativeResTexrects enabled. 2019-02-02 18:34:12 +07:00
Sergey Lipskiy
4a50912283 Enable texrect drawer for BGCopyNew. 2019-02-02 18:34:12 +07:00
Sergey Lipskiy
6ca50bd733 Use old code for frame buffer texture backgrounds 2019-02-02 18:34:11 +07:00
Sergey Lipskiy
1f372fa0ce Fix S2DEX_MoveWord 2019-02-02 18:34:11 +07:00
Sergey Lipskiy
be1a1fc413 Fixes for S2DEX 1.5 2019-02-02 18:34:11 +07:00
Sergey Lipskiy
9e64d45ac5 New implementation of BgCopy command. It is based on olivieryuyu decoding of actual ucode and works as close to original command as possible. 2019-02-02 18:34:11 +07:00
Sergey Lipskiy
5ac2749bbb Fixes in gSPObjLoadTxtr. 2019-02-02 18:34:10 +07:00
Sergey Lipskiy
a3613b42ae Draw backgrounds with TexrectDrawer. 2019-02-02 18:34:09 +07:00
Sergey Lipskiy
25bef0d805 New implementation of BG1Cyc command.
It is based on olivieryuyu decoding of actual ucode and works as close to original command as possible.
2019-02-02 18:34:09 +07:00
Sergey Lipskiy
31e2c7e11a Correct lighting for CBFD.
Code refactoring.
2019-01-13 01:07:20 +07:00
Sergey Lipskiy
1ec435d6e7 Correct command S2DEX_Obj_Rectangle_R for ucode version 1.03 2018-11-08 11:58:13 +07:00
Sergey Lipskiy
88aa90d075 Implement NO_XFM mode for Turbo3D ucode.
Fixed Dark Rift: gfx of the fist screen doesn't disappear when it should (HLE issue) #626
Fixed Dark Rift: missing transition effect in menu #649
2018-11-05 13:27:07 +07:00
gizmo98
35099ec8cb Backgrounds: Fix cut off textures and texture fragments and seams
-Fix cut off textures in hamster64. Enable coord correction if
gDP.otherMode.textureFilter == G_TF_BILERP.
-Fix seams in hamster64 and texture fragments in starcraft64. Enable
texture clamp if lrs/lrt <= (imageW/imageH - 1).
2018-10-13 19:09:24 +07:00
Sergey Lipskiy
6ba9a81e76 Rewrite Tri commands for SWRS ucode. 2018-10-01 23:15:33 +07:00
gizmo98
13f587a360 tile functions: Replace magic numbers with constants
Just refactoring. Replace magic numbers with constants. No functional
changes.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
b096c1e9fc Rewrite vertex coordinates calculation for ObjSprite command again. 2018-09-30 18:03:46 +07:00
Sergey Lipskiy
91b17a578c Rewrite vertex coordinates calculation for ObjRect commands again. 2018-09-30 18:03:46 +07:00
Sergey Lipskiy
0da701e7e5 Rewrite texture coordinates calculation for ObjRect commands. 2018-09-30 18:03:46 +07:00
Sergey Lipskiy
8fd5f910ab Add support for S2DEX v1.03 2018-09-30 18:03:45 +07:00
Sergey Lipskiy
5abb19bd7a Disable "yoshi petals fix" because of regression in yoshi's message board. 2018-09-30 18:03:45 +07:00
Sergey Lipskiy
164d012138 Rewrite coordinates calculation for ObjRectangle and ObjRectangleR 2018-09-30 18:03:45 +07:00
Sergey Lipskiy
83995f5dc8 Correct vertex coordinates calculation for gSPObjRectangleR 2018-09-30 18:03:45 +07:00
Sergey Lipskiy
51490b9de0 Correct _YUVtoRGBA 2018-09-30 18:03:45 +07:00
Sergey Lipskiy
ec898f4178 Rewrite vertex coordinates calculation for gSPObjRectangleR using fixed-point math decoded from S2DEX ucode by olivieryuyu
Code refactoring.
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
9bbd449812 Correct lrs and lrt calculation for ObjRect commands. 2018-09-30 18:03:44 +07:00