Benau
a55cc47845
Fix leaking font texture when changing language
2017-01-10 12:52:31 +08:00
Benau
9af219f691
Fix #1780
2017-01-10 11:39:01 +08:00
hiker
2641f0b067
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-01-10 13:25:53 +11:00
hiker
55e98e041c
Removed unused (or replaceable in case of clamp) functions from helpers.
2017-01-10 13:25:26 +11:00
auria.mg
87646463b8
Minor : upgrade profiler utils to use the logging functions
2017-01-09 20:36:08 -05:00
auria.mg
7e6761e968
Minor : reduce logging level
2017-01-09 20:30:08 -05:00
auria.mg
ebf3893f73
Minor : add a little documentation to user config
2017-01-09 20:29:41 -05:00
Benau
f7d843a7f7
Make dialog draggable in artist debug mode
...
So artist can view texture change by moving texture console
2017-01-10 09:22:08 +08:00
Benau
8acd2d689a
Merge branch 'new_texture_format'
2017-01-10 09:09:38 +08:00
Deve
ecd5445eed
Added a helper function that prints opengl errors
2017-01-09 23:21:40 +01:00
Benau
08876e30ab
Remove unused builtin font
2017-01-09 15:50:26 +08:00
Benau
bd20d2512c
Keep single channel for reloading texture
2017-01-09 15:35:57 +08:00
Benau
848dd05f11
Add IImage to STKTexture constructor for areamap texture
2017-01-09 15:04:34 +08:00
Benau
c4b4ea006e
We don't need to add a new glyph page for billboard text anymore
2017-01-09 13:16:40 +08:00
Benau
46be4948b2
AZDO for new texture format
2017-01-09 13:03:50 +08:00
Daniel Ölschlegel
be2e86166f
Update CIrrDeviceLinux.cpp ( #2731 )
...
Fix compile error under NetBSD
2017-01-08 20:44:04 -05:00
Benau
e049cb2bd6
Allow saving single channel compressed texture
2017-01-09 00:50:04 +08:00
Benau
71c14ff0b3
Convert code to a more readable format
2017-01-08 23:50:47 +08:00
Benau
1cc8371ac5
Preserve max texture size when restart
2017-01-08 22:02:04 +08:00
Benau
597461d680
Fix server build
2017-01-08 15:42:29 +08:00
Benau
21d35d4bcd
Display texture size instead of pointer location
2017-01-08 15:37:03 +08:00
Benau
00437e6d15
Allow using colorization mask with single channel texture only
2017-01-08 15:30:49 +08:00
Benau
4ba1b2408c
Minor optimization
2017-01-08 14:38:58 +08:00
Benau
6f191bd7da
Fix gles
...
Because in the past call texture->lock() will return unmodified
cached image (always bgra), now the image will be converted
dependently
2017-01-08 13:31:10 +08:00
James Cowgill
4aae66a050
Convert CREDITS to UTF-8 ( #2723 )
...
* Convert CREDITS to UTF-8
* Remove trailing whitespace in CREDITS
* Read CREDITS file as utf-8
* Make CREDITS file non-executable
2017-01-07 18:56:15 -05:00
Daniel Ölschlegel
64015348da
Update as_memory.cpp ( #2730 )
...
Merged required patch from OpenBSD and NetBSD
2017-01-07 18:55:10 -05:00
Daniel Ölschlegel
6e38e7429b
Update as_config.h ( #2729 )
...
NetBSD is a BSD
2017-01-07 18:52:39 -05:00
Benau
f609114594
Zero the array to prevent black border in glyph
...
Also use the correct internal format
2017-01-08 00:05:00 +08:00
Benau
314c32865b
Allow using single color channel for font texture
2017-01-07 16:36:25 +08:00
Benau
f78d749a0c
Fix no graphics run
2017-01-07 15:43:25 +08:00
Benau
6deb0e0f8a
Avoid using createImageFromData with preload data for texture
...
Todo: allow using single channel for font texture, saving 75% size
2017-01-07 14:45:47 +08:00
Benau
37a4d512ab
Add cache version inside the cache file
...
Also clean up commented out code
2017-01-07 10:44:29 +08:00
auria.mg
68fe1e58c2
Fix a few divisions by zero, see #2727
2017-01-06 21:26:16 -05:00
auria.mg
67e66b44b0
Improve texture cache code to use precise subpaths instead of hashes
2017-01-06 21:07:53 -05:00
Benau
3e5199334d
Drop models and lights when leaving model widget screen
2017-01-07 00:27:48 +08:00
Benau
ba8846522e
Implement cleaning for new texture
...
Also warn if there is possible texture leaking when exit STK
2017-01-06 23:45:25 +08:00
Benau
555cdacd83
Improve warning
2017-01-06 20:54:22 +08:00
Benau
437f89eea7
Clean up
2017-01-06 20:28:03 +08:00
Benau
66f3a2e32b
Make dump glyph page possible for new texture format
...
Also implement read-only lock, please use reload() for writing
2017-01-06 19:58:51 +08:00
Benau
2af126357d
Port font to use new texture format
2017-01-06 18:20:19 +08:00
Benau
4bcf03e296
Port reload texture to use new STKTexManager
2017-01-06 15:47:54 +08:00
Benau
827a483e85
Allow legacy pipeline to use new texture format
2017-01-06 15:04:15 +08:00
Deve
5f4bef044b
Pause/resume sounds when game is paused on Android.
...
We should handle both pause and focus events, but they may occur in different order or in some cases we may receive only lost focus event.
So we need to check the current state to make sure that pause/resume sounds is executed only once.
2017-01-05 15:53:32 +01:00
Benau
c7f9de3080
Merge pull request #2725 from LoadingPleaseWait/ghost-slipstream
...
No slipstream from ghost kart, fix #2721
2017-01-05 16:23:18 +08:00
LoadingPleaseWait
1cb329dccf
No slipstream from ghost kart, fix #2721
2017-01-05 02:10:35 -06:00
Benau
513f1e2edf
Add unicolor texture loading
2017-01-05 14:51:38 +08:00
Benau
6e4d7da487
Improve warning handling
2017-01-05 13:42:22 +08:00
Benau
c7d56d3edc
Allow caching compressed texture
...
Use std::hash for string (path + basename + max_texture_size)
2017-01-05 12:50:33 +08:00
Deve
fb0a54278a
Fixed possible crash.
...
STK could crash when invalid graphics restriction name was set in graphics_restrictions.xml file.
It's because of wrong while (m_names_of_restrictions[i] != NULL) condition.
2017-01-05 00:28:16 +01:00
Deve
23acade026
Make sure that legacy pipeline is used when it's set in graphics restrictions.
...
It was be done only for GLES before, but also for OpenGL some drivers create OpenGL 4.x compatibility profile context even if we request GL 2.1. So we can't assume that it will report GL2.1 and we should make sure that fixed pipeline will be used.
Actually now it works in the same way as force_legacy_device in config.xml.
2017-01-04 23:39:15 +01:00