auria.mg
ad092f0213
Add missing language
2017-04-11 18:42:32 -04:00
deve
6599ceddec
Fixed server only build
2017-04-10 06:15:01 +02:00
Benau
f30962b944
Use lambda to workaround __stdcall issue
2017-04-10 10:00:34 +08:00
Benau
bcf996e291
Fix callback
2017-04-10 08:53:55 +08:00
Benau
ab10f335e9
Remove glew include in libopenrecorder
2017-04-10 01:26:52 +08:00
Benau
c69ea65ac2
Use RGBA for capture
2017-04-09 16:19:09 +08:00
Deve
c06ea3447d
Revert "Move loadSfx to the SFXManager thread"
...
This reverts commit ce426d82cc
.
2017-04-09 09:29:25 +02:00
Benau
a5759afac7
Improvements from Stragus and leyyin
2017-04-09 15:28:28 +08:00
Benau
156b799011
Remove STK headers in recorder and use c++11 thread library
2017-04-09 14:16:45 +08:00
Deve
9efe8ae4fa
One more fix for mingw
2017-04-07 21:34:28 +02:00
Deve
724cb100e0
Make grass material more bright in legacy pipeline
2017-04-07 00:02:31 +02:00
Benau
b2d3817de3
Merge remote-tracking branch 'origin/master' into advanced_recording
2017-04-06 09:43:36 +08:00
Benau
ab554315b5
Remove non-supported video format
2017-04-06 09:37:32 +08:00
hiker
96bdf77050
Merge branch 'physics-tweaks'
2017-04-06 00:06:22 +10:00
hiker
00bba293ad
Merge remote-tracking branch 'origin/master' into physics-tweaks
2017-04-05 23:59:34 +10:00
hiker
6c4f6d1cf5
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-04-05 23:14:29 +10:00
Benau
391d31659b
Remove hardcoded 44100 samplerate
2017-04-05 15:43:47 +08:00
Benau
bb529c011e
Add message queue for result callback
2017-04-05 12:31:39 +08:00
Benau
1a072d609f
Add vp9 encode support, though it encodes very slowly
2017-04-05 01:10:44 +08:00
Benau
85de10ffb5
Fix memory leak
2017-04-04 23:53:44 +08:00
Benau
b7c709c709
Allow muxing mjpeg with vorbis audio with mkv
...
Not sure if playable in with all players
2017-04-04 16:12:09 +08:00
Benau
b0d0a0739e
Add CMake flag to enable / disable recorder
2017-04-04 14:23:04 +08:00
Benau
0bb5bfb930
Don't use dlloaded function in pulseaudio recorder namespace
2017-04-04 12:19:29 +08:00
Benau
ea6719990a
Move all recording code into recorder folder
2017-04-04 10:04:55 +08:00
Benau
19f88e3939
Allow stk to be built with 64bit msvc
...
Please use lastest adv_recording_64 branch in repo
2017-04-03 01:33:13 +08:00
hiker
fdcb39b8fc
Fix #2812 (non-smooth cannon behaviour).
2017-04-02 21:06:10 +10:00
Benau
8a5e28251e
Fix mingw build
2017-04-02 14:55:55 +08:00
Benau
adf889a885
End vorbis encoder thread more properly
2017-04-02 10:36:21 +08:00
Benau
ab2ce24914
Reduce cpu usage
2017-04-02 10:28:46 +08:00
Benau
9bfe4200c4
Only use TJFLAG_FASTDCT if supported
2017-04-02 00:43:31 +08:00
Benau
7f23d062b7
Use turbo jpeg for compression
2017-04-01 16:41:06 +08:00
Benau
8a8b388170
Allow pulseaudio to be loaded dynamically
2017-04-01 15:21:58 +08:00
Benau
294aa3ad48
Allow recording 16bit pcm data with any channels
2017-04-01 11:02:14 +08:00
Benau
cfea104a50
Apply camera fix from Stragus
2017-04-01 10:33:48 +08:00
Benau
cacbdbd668
Allow recording audio in windows using wasapi
2017-04-01 00:52:38 +08:00
hiker
794f1b59ed
Removed unused code.
2017-03-31 23:30:55 +11:00
hiker
db31237d19
Removed old workaround for uneveness in tracks, which contributed
...
to karts sometimes being able to drive up walls.
2017-03-31 23:13:38 +11:00
Benau
29d0839162
Move libvpx parameters to user config
2017-03-31 12:22:21 +08:00
Benau
21ff135b04
Merge remote-tracking branch 'origin/master' into advanced_recording
2017-03-31 11:50:24 +08:00
Benau
9039324145
Allow muxing into webm using libwebm
2017-03-30 13:30:21 +08:00
hiker
1cd5bb66c9
Try to better handle small 'gaps' (or perhaps floating point
...
rounding errors) in tracks that can cause odd physics behaviour
(e.g. being able td drive upp the walls).
2017-03-30 00:08:30 +11:00
hiker
3da2c07d62
Enable friction to be changed per wheel: previously sliding was only
...
enabled once the whole kart chassis was tilted enough, but karts could
still end up driving on a wall (one wheel on a wall would not tilt the
chassis enough to trigger sliding, but give the kart an up velocity
which allowed it to drive on the wall). Friction is now determined
by the normal of the triangle hit by the raycast.
2017-03-29 08:32:50 +11:00
Deve
af98b526d6
Give few more fps in GLES renderer by pre-computing diffuse/specular color
2017-03-28 22:15:33 +02:00
QwertyChouskie
0123228c20
Set menu FPS to 60 ( #2823 )
...
Smoother, see https://github.com/supertuxkart/stk-code/issues/2302 .
2017-03-27 21:56:20 -04:00
Benau
df758669d3
Use high resolution timer for AV sync
2017-03-28 00:44:12 +08:00
Deve
0f9151e5d2
Move recording settings to separate group
2017-03-27 00:31:55 +02:00
Deve
075afde636
Fixed kart particles for GLES with disabled advanced lighting
2017-03-27 00:25:39 +02:00
Deve
a7f0d3762c
Some fixes for GLES renderer.
...
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.
Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Benau
be103dd666
Implement real time vp8 encoding
2017-03-25 16:30:41 +08:00
Deve
5931e20f8b
Use highp precision qualifier.
...
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.
In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.
This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
Benau
a68c085e95
Use pulseaudio + vorbisenc for sound recording (linux for now)
2017-03-24 21:51:17 +08:00
hiker
9fdd39b075
Removed unused code.
2017-03-24 16:35:45 +11:00
Marianne Gagnon
8461ffcc68
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2017-03-23 21:03:10 -04:00
Marianne Gagnon
b85d84c9dd
Remove outdated Apple-specific code
2017-03-23 21:02:16 -04:00
Benau
372ce6923c
Log in terminal if recording isn't supported
2017-03-24 08:51:42 +08:00
hiker
b26d833e84
Fixed compiler warnings.
2017-03-24 08:41:17 +11:00
hiker
b8655e53cc
Added support to modify the angular factor of a kart. The angular
...
factor can be used to reduce the effect of an impulse for roll
and pitch - keeping karts more parallel to the ground.
2017-03-23 19:07:34 +11:00
Benau
2660a5b332
Allow message queue to be able to do linebreak
...
Also set "/" and "\" to be breakable
2017-03-23 00:51:50 +08:00
Benau
81c6735ba2
Fix when getNumProcessors return 0
2017-03-22 20:47:34 +08:00
deve
a3a8289836
Fixed a hang on startup under cygwin
2017-03-22 13:17:04 +01:00
hiker
f55c39b3b1
Support setting of friction for karts, moveable and track in stk_config.xml
...
and kart_characteristics.xml (for now no changed settings, all are at
tbe default of 0.5).
2017-03-22 19:52:03 +11:00
Benau
41e66bef37
Allow keeping target name after changing resolution
2017-03-22 12:44:32 +08:00
Benau
9a69859c8f
Fix crash when deleting AVIWriter with file closing
2017-03-22 11:34:42 +08:00
Benau
7e9f723038
Allow recording video with ctrl + printscreen
2017-03-22 10:43:02 +08:00
Benau
4b663a08ce
Use array deallocation
2017-03-22 09:58:22 +08:00
Benau
9034d89a31
Add the missing clear()
2017-03-22 09:53:02 +08:00
Benau
58c665efc6
Merge branch 'avi_writer'
2017-03-22 09:14:35 +08:00
Benau
740bf19446
Fix grammar
2017-03-22 09:08:44 +08:00
Benau
6ef70e2e7c
Use message queue to inform users about recording status
2017-03-22 09:02:21 +08:00
Benau
2b9a84253a
Make MessageQueue thread-safe
2017-03-22 08:40:58 +08:00
Benau
668b28f632
Allow to config whether to limit game framerate with recordings
2017-03-22 07:43:00 +08:00
Deve
4ef8ec3af2
Fixed a warning in shaders compilation
2017-03-21 19:42:53 +01:00
Deve
583b858860
Handle #stk_include in better way.
...
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Benau
f58cf2d9cc
Better handling with thread
2017-03-22 00:39:24 +08:00
Benau
3ed52e26d0
Call createFile only in AVIWriter thread
2017-03-21 16:16:10 +08:00
Benau
e2482e602c
Don't use irrlicht image
2017-03-21 14:35:20 +08:00
hiker
5bbacfc72d
Allow tracks to set their friction (defaults to the bullet default 0f 0.5).
2017-03-21 16:24:29 +11:00
Benau
449d63c0d8
Save record option in user config
2017-03-21 13:08:08 +08:00
Benau
547d28a9e4
Use jpeg-turbo library in msvc
2017-03-21 09:17:39 +08:00
samuncle
8265bb14f3
Revert, the high frequency noise has it's own branch
2017-03-20 15:15:51 -05:00
Sam
16c0736f8b
Add base for detail map with splatting
2017-03-20 20:49:54 +01:00
Benau
3087a7c856
Don't call malloc for each frame
2017-03-21 01:09:20 +08:00
Benau
78dcabb143
Try to maintain a better synchronization with game framerate
2017-03-20 16:16:26 +08:00
Deve
2a64ce94c8
Some fixes for scale rtts.
...
- Don't force using rtts when advanced lighting is disabled because it actually makes the game slower
- Keep the minimap and kart selection screen in high quality
2017-03-18 22:26:35 +01:00
Benau
88cbcd202c
Don't enable AVIWriter if PBO is not usable
2017-03-18 16:06:38 +08:00
Benau
8259026ac1
Make AVIWriter threaded and get pixel with 3 async PBOs
...
Also try to record at a fixed 24fps
2017-03-18 15:50:18 +08:00
Benau
21cbcd9185
Load speedmeter texture before rendering the first frame
2017-03-18 08:30:50 +08:00
Benau
d3d7c95b4d
Fix msvc build
2017-03-17 17:19:46 +08:00
Benau
65da13fc52
Merge remote-tracking branch 'origin/threaded_tex_loader' into avi_writer
2017-03-17 16:31:32 +08:00
Benau
41844de6a5
Apply real fix from Stragus for normal map
2017-03-17 13:08:08 +08:00
hiker
6ac6d9ebfe
Fixed compiler warnings.
2017-03-17 15:56:47 +11:00
Benau
e1a563612f
Avoid calling gamma correction on non-srgb png
2017-03-17 10:15:06 +08:00
Benau
40a94b5562
First try to use Stragus's normal map filter on normal map texture
2017-03-17 09:57:45 +08:00
Benau
de3c9d7411
Allow to preserve more texture config
2017-03-16 16:20:05 +08:00
Benau
0f218cff32
Allow re-create ThreadedTexLoader with suitable capacity
2017-03-16 13:15:33 +08:00
hiker
9a5eec3761
Try tp reduce sudden rotation after a collision, and reduce frequencies
...
of kart being pushed into the air.
2017-03-16 16:14:48 +11:00
hiker
0f37f7cdc0
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-03-16 15:59:10 +11:00
Benau
ce76abf4fe
Merge remote-tracking branch 'origin/master' into hq_mipmap_generator
2017-03-16 11:23:27 +08:00
Benau
ce426d82cc
Move loadSfx to the SFXManager thread
2017-03-16 11:01:46 +08:00
Benau
e0fcf7c613
Fix build for real
2017-03-16 10:52:12 +08:00
Benau
9025948ced
Fix build
2017-03-16 10:18:31 +08:00
Benau
b112b124f2
Fix build
2017-03-16 10:02:51 +08:00
Benau
d55b513ca8
Try to fix clang build
2017-03-16 09:51:09 +08:00
Benau
1ba3fce7b8
Get rid of STK::Tuple
2017-03-16 09:16:06 +08:00
Benau
cc2c2c6f33
Remove the usage of openmp in stk, see #2810
2017-03-16 08:42:53 +08:00
Benau
0f1e0f8f4d
Merge remote-tracking branch 'origin/optimisations'
2017-03-16 08:29:05 +08:00
Benau
02c8c87d5d
Remix all image quality options
2017-03-16 01:04:53 +08:00
hiker
d32cb733a5
Bugfix, if path was given the filename was not used at all.
2017-03-15 22:30:32 +11:00
Benau
d08d2cc9c7
Avoid compling useless code in server only or gles
2017-03-15 12:45:35 +08:00
Benau
562131b53f
Make operator inline
2017-03-15 11:40:41 +08:00
Benau
f920ed7f97
Fix reloading texture with threads
2017-03-15 10:44:02 +08:00
hiker
698fe1aa1b
Merge branch 'fix2809'
2017-03-15 12:52:55 +11:00
hiker
a2bca46958
Fixed compiler warning.
2017-03-15 12:52:46 +11:00
hiker
71f247ecb7
Fix 2809.
2017-03-15 12:46:20 +11:00
Benau
6b0610af50
Don't use HQ Mipmap on colorization mask
2017-03-15 00:59:30 +08:00
hiker
47835bc1ef
Fixed VS compiler warnings.
2017-03-14 22:39:27 +11:00
Benau
eef2c19db7
Merge remote-tracking branch 'origin/master' into hq_mipmap_generator
2017-03-14 13:06:27 +08:00
Benau
ea948014a2
Allow dumping single channel texture by manual conversion
2017-03-14 12:58:00 +08:00
hiker
9bee42ccb7
Merge remote-tracking branch 'origin/master' into fix-cannon
2017-03-14 15:10:27 +11:00
Benau
eedc7f55c9
Make addThreadedLoadTexture thread safe
2017-03-14 11:35:26 +08:00
hiker
e5eb40b773
Smooth skidding rotation when entering a cannon.
2017-03-14 12:51:10 +11:00
Benau
abfb402acb
Disable saving generated mipmap to disk
2017-03-13 12:47:13 +08:00
Benau
a1492981cf
Apply fixes from Stragus for restrict keyword
2017-03-13 11:50:57 +08:00
Benau
76aa38e5b4
Try HQMipmapGenerator
2017-03-13 10:28:43 +08:00
Deve
6ea06e05de
Use kart lights only in shader-based pipeline.
...
It causes a huge slowdown in legacy pipeline, even if the radius is set to 0.
2017-03-13 01:26:48 +01:00
Sam
97670ed23c
Improved wind effect for vegetation
2017-03-12 21:35:48 +01:00
Deve
b8e3de0161
Allow to use debug menu on android
2017-03-12 11:42:21 +01:00
Benau
498ce3ebc9
Use a correct method to detect last queue texture
2017-03-12 15:03:02 +08:00
rogue-spectre
d33d72dfb8
fix feedback offroad #2761 ( #2806 )
...
* Fix updateenginesfx
smooth engine sound and fix https://github.com/supertuxkart/stk-code/issues/2761
* update enginesfx
* remove m_last_max_speed useless
* forgot : float max_speed
* Add missing space around =
* add space around = m_last_factor_engine_sound
2017-03-11 09:04:38 -05:00
Benau
a274f217ed
Fix build
2017-03-11 15:41:54 +08:00
Benau
40a25e1d9e
Remove dependency on STKTexture (for HQ mipmap generator later)
2017-03-11 15:33:36 +08:00
Benau
ead543fae4
Avoid checking too many
2017-03-11 14:04:42 +08:00
Benau
ab673fc03b
Merge remote-tracking branch 'origin/master' into threaded_tex_loader
2017-03-11 13:55:18 +08:00
Benau
b0adb92964
Make sure all textures are uploaded without using timeout in TTL
2017-03-11 13:35:33 +08:00
Benau
6e80271ad9
Max texture size 2k and allow them to be threaded load
2017-03-11 09:41:46 +08:00
Benau
6eb69db4ea
Properly clean up when exit
2017-03-11 00:23:54 +08:00
Benau
579aa8a9d1
Allow setThreadName to be used in linux (glibc > 2.11)
2017-03-10 23:30:18 +08:00
Benau
85011791e4
Try to use priority queue
2017-03-10 20:43:40 +08:00
Benau
6b3441d2a0
Allow reload texture with threads
2017-03-10 15:40:58 +08:00
Benau
ed9b16fe7b
Don't use std::thread library
2017-03-10 15:02:21 +08:00
Benau
553c483bf4
Avoid unnecessary sync
2017-03-10 14:16:23 +08:00
hiker
0bd459c2aa
Fix the transition from physics orientation to cannon (i.e. no more
...
yerk when the kart is not parallel to the tangent of the curve at start).
2017-03-10 17:11:54 +11:00
Marianne Gagnon
62d64847c4
Fix texture paths on case-sensitive file systems, fixes #2807
2017-03-09 18:41:35 -05:00
hiker
aac92f6111
Code simplification.
2017-03-10 08:44:51 +11:00
hiker
5640436aa8
Support cannons in reverse tracks.
2017-03-10 08:38:03 +11:00
hiker
c8b69cecb6
Merge remote-tracking branch 'origin/master' into fix-cannon
2017-03-09 23:05:03 +11:00
hiker
a500f3becc
Applied Stragus' SSE optimisations for spherical harmonics.
2017-03-09 22:58:22 +11:00
hiker
12e6bab90a
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-03-09 22:42:06 +11:00
Benau
68e36268aa
Try to use pbo for each ThreadedTexLoader
2017-03-09 16:41:15 +08:00
auria.mg
2d6cf4c487
Remove a few more string allocations/manipulations
2017-03-08 20:42:16 -05:00
auria.mg
571832fbbc
Make all material names and path lowercase upon loading them, moving several string allocations and modifications outside of hot loops
2017-03-08 20:30:45 -05:00
hiker
87950c9a94
Adjust up vector of kart slowly so that the kart is upright (even
...
when it was not upright at the start of the cannon).
2017-03-09 08:56:01 +11:00
Deve
21cb853079
One more tweak for hiding story mode icon if it's not available.
...
Now it should work properly, sorry for the mess.
2017-03-08 22:09:47 +01:00
Deve
d339d9acef
Fixed ambient light for legacy pipeline.
...
TODO: It should be possible to convert it once together with spherical harmonics computations.
2017-03-08 21:41:53 +01:00
Deve
11255cb2b8
Fixed wrong lights color for legacy pipeline.
...
SColor is ARGB, but SColorf is RGBA... WTF?
2017-03-08 21:12:24 +01:00
Benau
d864995c7d
First version of ThreadedTexLoader
2017-03-08 15:54:59 +08:00
hiker
bedb565f24
Simplified maths.
2017-03-08 17:57:03 +11:00
hiker
2436161b05
Approximate bezier curves better to avoid stuttering in cannons.
2017-03-07 22:24:46 +11:00
hiker
ae375c50b6
Allow the player to go to the left and right when in a cannon.
2017-03-07 22:11:15 +11:00
Deve
35139877f6
Fixed a crash on changing resolution
2017-03-06 23:10:29 +01:00
Deve
d4cecd5a8b
Show story mode icon only if overworld track exists.
...
It allows to decrease apk size a bit.
2017-03-05 23:31:53 +01:00
Deve
6c472660a1
Some additional checks for android assets manager.
...
If data was already extracted somewhere, then use this directory as preferred path. This is to avoid a situation that we have data extracted in two different places after STK upgrade.
2017-03-03 21:57:55 +01:00
Deve
f6cdf79b1e
Avoid spamming with errors
2017-02-27 00:58:43 +01:00
Deve
2ff79141a0
Don't show exhaust emitter for legacy pipeline
2017-02-27 00:58:43 +01:00
Deve
6d395d4510
Some fixes for GLES renderer
2017-02-27 00:58:43 +01:00
Benau
c7eeb8338d
Try to fix for gles
2017-02-24 19:03:14 +08:00
Deve
46619ec62a
Fixed gaussian blur
2017-02-23 20:40:06 +01:00
hiker
a7d1a312ad
Merge branch 'fix-cannon' of github.com:supertuxkart/stk-code into fix-cannon
2017-02-23 17:19:30 +11:00
hiker
bf61b98444
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-02-23 17:18:10 +11:00
hiker
b884f6429d
Fix stuttering of camera/kart when usnig a cannon (caused by the cannon
...
animation updating the (physical) kart position after the graphical position
was taken from the physical position, causing a stuttering because of the
differences between those two values.
2017-02-23 17:12:15 +11:00
Deve
b34e749198
Fixed nitro bar in multiplayer game when uniform buffer object is not available
2017-02-22 23:33:11 +01:00
hiker
f0efce62b1
Added debug view of target cannon line.
2017-02-23 09:00:07 +11:00
Deve
0767abe2bc
Draw a touch steering button that allows to run challenges.
...
It was broken because the fire button uses now the icon of collected weapon, so that it's not displayed at all when there is no weapon.
2017-02-22 21:43:36 +01:00
Deve
db4d11a0c5
Disable kart shadow for legacy pipeline in GLES renderer because it's broken
2017-02-22 21:04:28 +01:00
Deve
2ef6652183
Create a kart shadow only of shadow texture exists.
...
If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
2017-02-22 21:04:28 +01:00
Benau
02d3bd2c2b
Take item on walldriving tracks into account
2017-02-21 15:06:26 +08:00
Benau
3898678e76
Use raycasted position for point 2
...
Fix #2796 , #2774
2017-02-21 13:36:00 +08:00
Benau
0cf0002c08
Header clean up
2017-02-21 12:09:22 +08:00
auria.mg
eb9f656b44
Add config flag to persist GUI visibility state at samuncle's request
2017-02-20 19:16:49 -05:00
Deve
668e10d8ca
Don't use srgb format in gles
2017-02-20 21:56:33 +01:00
Deve
875d5d8ef9
Some tweaks to the arrows size in dynamic ribbon widget.
...
- arrow size now depends on screen size, so that it's now easier to click it on high resolutions
- it's additionally scaled on Android for easier usage
2017-02-20 21:56:33 +01:00
hiker
41df6afbf9
Fixed compilation.
2017-02-20 09:22:09 +11:00
hiker
a17b537699
Make cannon smoother.
2017-02-20 07:48:43 +11:00
hiker
30cff00757
Reduce internal physics timestep to test if collision handling improves.
2017-02-20 07:48:25 +11:00
hiker
8e8de3c5e2
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-02-20 07:45:26 +11:00
Benau
131dc4bfad
Fix #2786
2017-02-18 14:30:35 +08:00
Deve
299a4dc5f2
Don't check the TBO extension
2017-02-17 06:31:15 +01:00
Deve
251c46dcc4
Always call bind sampler function.
...
This fixes errors for Intel HD4000 on Windows.
My understending of this issue is following:
- a shader assigned two textures, i.e. texture1 = sampler1, texture2=sampler2
- then next shader (i.e. importance sampling specular) assigned two textures: texture1=sampler1, texture2=without_sampler
- when we executed setTextureUnits, the glBindSampler function wasn't called at all, so the drivers were trying to use combination texture2=sampler2, even though the sampler2 was prepared for different texture and most likely was already deleted.
We can just always call the glBindSampler function, so that if texture doesn't have a sampler, it will execute it with sampler_id=0 param, which is practically an "unbind" function.
2017-02-17 01:03:39 +01:00
Benau
c635e8d1c4
Get rid of some srgb conversion in shader, see #2787
2017-02-13 10:06:35 +08:00
Benau
d3cbc6ca0e
Fix GLES
2017-02-13 00:45:18 +08:00
Benau
ca0a605b0e
Don't use texture buffer object if not supported, see #2571
...
Also allow to use setTextureUnits for texture buffer
2017-02-12 15:42:22 +08:00
Benau
4af255431c
Fix opengl warning about glTexSubImage2D buffer of null pointer
...
For example, whitespace in freetype glyph has no bits buffer
2017-02-12 10:23:18 +08:00
Benau
48f27df1c9
Fix wrong angle when normal is exactly 0, -1 ,0
2017-02-11 16:05:10 +08:00
Benau
0ddada2897
Fix --track-debug crash
2017-02-11 14:42:24 +08:00
Deve
3f214c1bb7
Find textures once on race gui initialization
2017-02-11 00:51:22 +01:00
Deve
a877cb848f
Added better icons for touch steering.
...
Thanks to jymis!
2017-02-11 00:51:22 +01:00
Benau
ea95ffe424
Remove compiler warning
2017-02-10 18:21:27 +08:00
Alayan-stk-2
0293dabfd3
New GP point system ( #2765 )
...
* Change grand-prix node for the new GP point system
* New GP point system
* Typo fix
2017-02-07 19:31:53 -05:00
Deve
77ff387f6b
Minor tweak
2017-02-07 14:38:40 +01:00
Deve
4852664143
Allow to use accelerometer for turning left/right.
...
It should be much more comfortable on small devices.
Though it's not possible to get default screen orientation (and real device orientation) using NDK functions, so at this stage user has to manually choose if he needs "tablet" or "phone" accelerometer.
2017-02-07 13:48:08 +01:00