Luke Benstead
61e5a7a2a6
More twiddling work
2023-09-10 19:41:25 +01:00
Luke Benstead
3308a57e59
Implement defragmenting the memory
2023-09-08 17:49:46 +01:00
Luke Benstead
6eb079228e
Fix infinite loop
2023-09-06 21:01:37 +01:00
Luke Benstead
7ce01ad93f
Fix up paletted textures
2023-09-06 08:01:01 +01:00
Luke Benstead
e5a4f4f716
Continue fixing up paletted texture issues
2023-09-03 21:12:11 +01:00
Luke Benstead
4d39e19ed5
Start repairing paletted textures
2023-09-02 21:10:42 +01:00
Luke Benstead
5e7b33797d
Perf improvements and fixes
2023-09-01 20:25:27 +01:00
Luke Benstead
4b47f6878f
Remove yalloc
2023-09-01 08:34:48 +01:00
Luke Benstead
3248499d5a
Switch to the new allocator
2023-08-31 21:21:14 +01:00
Luke Benstead
77531ca347
Drastically refactor glTexImage2D
2023-08-26 20:34:11 +01:00
Luke Benstead
026bdeff09
Fix infuriating memory corruption bug
2023-05-20 07:47:39 +01:00
Luke Benstead
d81472ef57
Liberally assert stuff
2023-05-17 20:39:58 +01:00
Luke Benstead
462eb40d7a
Fix bugs in texture deletion
2023-05-17 20:39:49 +01:00
Luke Benstead
c4c0bf4239
Fix an off-by-one error
2023-05-17 20:39:27 +01:00
Luke Benstead
9037d157d5
Clean up
2023-05-17 20:38:21 +01:00
Luke Benstead
52a0215ed8
Make sure we initialize texture 0. We don't actually use it yet
...
(binding zero disables texturing) but I believe the spec says that
texture 0 is the "default texture" and is an actual texture object.
2023-05-17 20:36:59 +01:00
Luke Benstead
a5891056db
Many bug fixes and optimisations
2023-05-16 13:31:44 +01:00
Luke Benstead
300f2a611e
Optimise state management
2023-03-17 20:40:45 +00:00
Luke Benstead
b08bbebf12
Mipmap fix
2023-03-05 20:26:15 +00:00
Luke Benstead
8fff6ee1aa
Treat GL_CLAMP_TO_EDGE the same as GL_CLAMP
2022-12-09 20:17:46 +00:00
Luke Benstead
6be3e6185d
Faster inversion
2022-09-14 19:20:24 +01:00
Luke Benstead
0b62ac8673
Clean ups and optimisations
2022-08-25 21:24:08 +01:00
Luke Benstead
9a50917062
Fix rgba vs argb inversion
2022-05-21 20:16:34 +01:00
Luke Benstead
fe7f9cbed0
Fix crash when generating mipmaps on 4bpp textures
2022-05-07 12:57:45 +01:00
Luke Benstead
d0e6b56414
Restore validation of the internalFormat (even though it's unused)
2022-05-04 21:00:15 +01:00
Luke Benstead
dc69a81da1
Remove unused code. Various clean ups
2022-05-04 20:53:18 +01:00
Luke Benstead
dd7bb47ffb
Merge remote-tracking branch 'ozzyouzo/master' into paletted-textures
2022-05-04 20:39:39 +01:00
OzzyOuzo
c48bbfe07c
Fixed glMultMatrixf(...)
...
Added _glResetSharedPalettes
2022-05-03 16:12:27 +03:00
T_chan
621982d14e
Add glGetTexImage stub for portability
2022-01-31 08:29:00 +00:00
T_chan
0d60b318da
expose and correct glTexParameterf()
2022-01-18 17:23:30 +00:00
OzzyOuzo
1a456cb1a7
16bit palette color format support, extended 64 shared palette slots (4bpp), GL_OES_compressed_paletted_texture support
...
GL_ERROR generated when texture size > 1024
2021-12-03 09:32:53 +02:00
OzzyOuzo
8caee68df5
added _glFreePaletteSlots(..)
2021-11-30 19:23:49 +02:00
OzzyOuzo
148962254a
4bpp texture palette support, modified paletted_pcx sampled (USE_16C_PALETTE)
2021-11-18 12:04:46 +02:00
Luke Benstead
b710a619d5
Fix issues with bilinear mipmapping
2021-10-25 19:04:58 +01:00
Luke Benstead
66d09e7d77
Error cleanup and immediate mode perf improvements
2021-09-13 10:29:04 +01:00
Luke Benstead
4adc49cd40
Optimisations
2021-09-12 15:04:52 +01:00
Luke Benstead
3332dfa74a
Handle running out of PVR memory correctly
2021-09-04 12:14:31 +01:00
Luke Benstead
f0383f8e1c
Remove broken check
2021-05-16 20:33:49 +01:00
Luke Benstead
ce9f3677f6
Immediate mode optimisation
2021-04-18 21:33:23 +01:00
Luke Benstead
9ca68de427
Force 32-byte allocations
2021-04-18 13:57:00 +01:00
Luke Benstead
30d76eada9
Fix texture issues
2021-04-13 21:28:59 +01:00
Luke Benstead
fe616028bb
X86
2021-04-09 15:24:47 +00:00
Luke Benstead
9ed6c0209e
Defrag and retry if allocating texture memory fails
2021-02-20 15:04:40 +00:00
Luke Benstead
f9b7cd7985
Add a custom extension to query and defragment texture memory
2021-02-19 21:28:31 +00:00
Luke Benstead
425a0c2af1
Switch to yalloc
2021-02-19 07:08:58 +00:00
Luke Benstead
af82f7632f
Fix default texture modulation
2020-05-19 21:27:34 +01:00
Hayden Kowalchuk
1c792df5ae
fix: texture.c
...
- add const where needed
- move defines to private.h
- add vq offsets to mipmaplocation
- backend support for mipmap bias
- inline fixups
- have texture.c spit more helpful info on crash
- allow mipmap uploads to actuall complete
- note unused
2020-03-05 15:09:19 -05:00
Luke Benstead
1d1a980f16
Fix memory leak (thanks @HaydenKow)
2020-03-02 19:20:42 +00:00
Luke Benstead
937ad56c26
Fix out of bounds read
2020-02-29 09:48:52 +00:00
Luke Benstead
2c5b71b2b0
Implement mipmap generation for paletted textures
2019-09-26 09:17:07 +01:00