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

63 Commits

Author SHA1 Message Date
Sergey Lipskiy
e3f51aae25 Correct texture size calculation: use mask size only if mask != 0.
Fixed backgrounds in F-1 Pole Position.
2015-05-13 10:18:36 +06:00
Sergey Lipskiy
d9eab35441 Remove redundunt glTexParameter calls. 2015-05-13 10:18:08 +06:00
Sergey Lipskiy
df4c34bc2c Fix code analizer's warning. 2015-05-13 10:17:58 +06:00
Sergey Lipskiy
17b2db7031 Workaround for Mupen64Plus issue with initialization 2015-05-13 10:17:54 +06:00
Sergey Lipskiy
ced838fed2 Add support for Anisotropic Filtering. 2015-05-13 10:17:46 +06:00
Sergey Lipskiy
64d97e72e0 Remove textureBitDepth settings.
Load textures using most relevant format.
2015-05-13 10:17:32 +06:00
Sergey Lipskiy
3b102d4ebd Fix texture filter usage. 2015-05-13 10:17:05 +06:00
Sergey Lipskiy
dce0019e9a Correct tile width and height masking.
Fix for commit 474398be.
Fixed Pokemon Snap: missing/black texture on beach #203
2015-05-13 10:16:44 +06:00
Sergey Lipskiy
729e753acf Fix load paletted backgrounds.
Fixed logo in Dragon Sword.
2015-05-13 10:16:42 +06:00
Sergey Lipskiy
5af46b47ad Fix mip-mapping with zero level.
Fixed objects in Paper Mario.
2015-05-13 10:16:39 +06:00
Sergey Lipskiy
9c4bb7d0c2 Fix texture address for cached texture. 2015-05-13 10:16:36 +06:00
Sergey Lipskiy
7ca20f8a42 Update CachedTexture::shiftScaleS and CachedTexture::shiftScaleT before call
to TextureCache::activateTexture() since these parameters can change
between frames.

Fixed "Ground incorrect at some place durin mario golf intro #78"
2015-05-13 10:16:33 +06:00
Sergey Lipskiy
232a2c0b84 Rewrite _calculateCRC():
- fixed bytes per line calculation
- fixed CRC for 32bit textures.
2015-05-13 10:16:32 +06:00
Sergey Lipskiy
506ca2b44c Fix textures load for different textureLUT modes. 2015-05-13 10:16:18 +06:00
Sergey Lipskiy
f661fc0be7 Fix I and IA textures load when G_IM_FMT_CI tlut mode is on.
Issue #41
2015-05-13 10:16:16 +06:00
Sergey Lipskiy
041e63c67a Fix HD backgrounds load. 2015-05-13 10:16:16 +06:00
Sergey Lipskiy
5df0bca6b9 Fix load 32bit textures.
Fixed textures in Automobili Lamborghini, #177
2015-05-13 10:16:15 +06:00
Sergey Lipskiy
1262304706 Use input _pTexture parameters for HD texture crc calculation. 2015-05-13 10:16:14 +06:00
Sergey Lipskiy
eaa4ba35b3 Fix bpl claculation for HD tex. 2015-05-13 10:16:13 +06:00
Sergey Lipskiy
67e6f23f36 Remove obsolete hack for Zelda warp texture.
Fixed Bond's Portrait texture in GE.
2015-05-13 10:16:07 +06:00
Sergey Lipskiy
a5360657f9 Disable texture filtering for texrects if txFilterIgnoreBG is on. 2015-05-13 10:16:02 +06:00
Sergey Lipskiy
8d17023217 Add texture filtering for backgrounds. 2015-05-13 10:16:01 +06:00
Sergey Lipskiy
fbe21ef07d Fix code analizer warnings. 2015-05-13 10:15:55 +06:00
Sergey Lipskiy
19a274f9e5 Fix compilation with gcc. 2015-05-13 10:15:52 +06:00
Sergey Lipskiy
dd4b714ccd Enable Texture filtering. 2015-05-13 10:15:44 +06:00
Sergey Lipskiy
42193b49a5 Load Hi-res textures. 2015-05-13 10:15:43 +06:00
Sergey Lipskiy
c984298b7b Implement search for hires texture. WIP 2015-05-13 10:15:41 +06:00
Sergey Lipskiy
f8da3cb792 Calculate texture size using gDPLoadTileInfo. 2015-05-13 10:15:27 +06:00
Sergey Lipskiy
887504c301 Switch to non-POT textures. 2015-05-13 10:15:25 +06:00
Sergey Lipskiy
e2347a09a5 Mask TMEM address.
Fixed images load in Blast Corps.
2015-05-13 10:15:15 +06:00
Sergey Lipskiy
57fb19a7ac Move texture sizes calculation into separate procedure.
Use it to calculate mip-maped tiles sizes.

Fixed globe in Blast Corps.
2015-05-13 10:15:13 +06:00
Sergey Lipskiy
f96bb13a0b Fix textures size calculation: apply mask on width and height to avoid overflow.
Fixed crash in carmadeggon after N logo.
2015-05-13 10:15:10 +06:00
Sergey Lipskiy
43727bc5a3 Correct textures load when gSP.texture.tile == 7 2015-05-13 10:14:46 +06:00
Sergey Lipskiy
e8a9832861 Fix textures size calculation method when tile loaded via LoadTile. 2015-05-13 10:14:44 +06:00
Sergey Lipskiy
0c7b3b9754 Don't clamp textures in COPY cycle type. 2015-05-13 10:14:43 +06:00
Sergey Lipskiy
cb785c2667 Fix textures size when load via LoadTile. 2015-05-13 10:14:42 +06:00
Sergey Lipskiy
4cacd7f818 Fix load RGBA textures when TLUT is enabled.
Fixed water texture in GE Frigate level.
2015-05-13 10:14:40 +06:00
Sergey Lipskiy
8d37143331 Implement YUV textures load. 2015-05-13 10:14:37 +06:00
Sergey Lipskiy
f11617bfa0 Fix 32bit textures load. 2015-05-13 10:14:35 +06:00
Sergey Lipskiy
6277ea1ca7 Enable bilinear filter for sprites. 2015-05-13 10:14:32 +06:00
Sergey Lipskiy
799638c29b Fix TextureCache::_updateBackground():
Load texture image with its actual size, not cast to power of two sizes.
This allows to wrap it easily.
2015-05-13 10:14:23 +06:00
Sergey Lipskiy
e4fa0b5717 Mip-mapping! 2015-05-13 10:13:43 +06:00
Sergey Lipskiy
2ca283cf0f Call CRC_BuildTable() in TextureCache ctor. 2015-05-13 10:13:25 +06:00
Sergey Lipskiy
a6056d4c3c Optimize textures map: store values to avoid malloc/free. 2015-05-13 10:13:02 +06:00
Sergey Lipskiy
7f6d7e2772 Refactor: rewrite TextureCache.
Store normal textures and frame buffer textures in separate maps.
Replace TextureCache_* functions by methods of TextureCache.
2015-05-13 10:12:44 +06:00
Sergey Lipskiy
9e5cab6852 Remove Noise textures. 2015-05-13 10:12:43 +06:00
Sergey Lipskiy
21b40c7a6c Remove 2xSAI support. 2015-05-13 10:12:42 +06:00
Sergey Lipskiy
f7e0aa6e10 Refactor: correct texture CRC calculation.
Texture parameters are added to calculated crc, and thus the crc must
define the texture completely.
Assertion added to check that found texture is exactly the one we are looking for.
2015-05-13 10:12:41 +06:00
Sergey Lipskiy
389a46c394 Code cleaup: fix idents, replace spaces by tabs. 2015-05-13 10:12:31 +06:00
Sergey Lipskiy
4d93ddac4f Use std min and max 2015-05-13 10:12:30 +06:00