614c8aea20
Android/openslES: set number of buffers of DATALOCATOR to internal NUM_BUFFER If we increase NUM_BUFFER, Enqueue won't fail with SL_RESULT_BUFFER_INSUFFICIENT
Sylvain Becker
2019-02-05 15:09:41 +01:00
bf823bf2dc
Android/openslES: prevent to run out of buffers if Enqueue() fails.
Sylvain Becker
2019-02-05 15:05:32 +01:00
40781dfb15
opengles2: patched to compile.
Ryan C. Gordon
2019-02-04 23:35:18 -05:00
b7504f311b
opengles2: keep cached texturing state correct.
Ryan C. Gordon
2019-02-04 23:32:28 -05:00
a609c03ac6
opengles1: keep cached texturing state correct.
Ryan C. Gordon
2019-02-04 23:24:10 -05:00
40a52ceef7
render: Fix OpenGL draw state cache for various points of texture binding.
Ryan C. Gordon
2019-02-04 18:55:39 -05:00
670f3d3327
Fixed bug 4484 - use SIMD aligned memory for SDL_Surface
Sylvain Becker
2019-02-04 09:11:07 +01:00
9292dc7ca1
Fix include path compilation
Sylvain Becker
2019-02-04 08:43:37 +01:00
9a98dcc516
Rename surface aligned memory flag to SDL_SIMD_ALIGNED
Sylvain Becker
2019-02-04 08:34:24 +01:00
65e07b3884
iOS/tvOS: fix support for SDL_GameControllerGetButton(controller, GUIDE) with MFi controllers (thanks Caleb!) Fixes bug #4463.
Alex Szpakowski
2019-01-31 19:52:47 -04:00
e5d194e902
Add SDL_MEMALIGNED flag for SDL_Surface using aligned memory.
Sylvain Becker
2019-01-31 11:45:31 +01:00
7b8bac5958
Add fast paths in BlitNtoNKey
Sylvain Becker
2019-01-30 22:50:20 +01:00
cd25c83aad
Fix blit with blending (Blit_A) to RGB332 which has no palette
Sylvain Becker
2019-01-30 17:16:08 +01:00
5b07148f73
Fixed failing SDL_ConvertSurface() when blit has failed.
Sylvain Becker
2019-01-30 16:36:47 +01:00
a052d81bdf
Add explicit unsigned int and char types in (for bug 4290)
Sylvain Becker
2019-01-30 15:31:07 +01:00
1128d57316
Fixed bug 4290 - add fastpaths for format conversion in BlitNtoN
Sylvain Becker
2019-01-30 15:23:33 +01:00
3b4e369365
Emscripten: No need for Runtime. for dynCalls
Alon Zakai
2019-01-29 12:21:22 +00:00
53ead95e1d
Emscripten: Avoid SDL2 in JS global scope After this fix, closure works with the LLVM wasm backend on SDL2.
Alon Zakai
2019-01-29 12:19:36 +00:00
6d89a7bc71
Emscripten: remove GLES_DeleteContext implementation It was calling glClear without a context. The issue it was trying to solve was actually that after destroying a window and creating a new one , the contents of the old window were preserved. This no longer happens since we resize the window to nothing on destroy.
Charlie Birks
2019-01-29 12:19:32 +00:00
04b1494cf8
Emscripten: resize canvas to 0x0 in DestroyWindow Closest we can get to actually destroying it
Charlie Birks
2019-01-29 12:19:23 +00:00
d60546aaa8
Emscripten: don't zero the display mode before adding it
Charlie Birks
2019-01-29 12:19:06 +00:00
4a2888af10
Emscripten: use UTF8ToString instead of Pointer_stringify
Charlie Birks
2019-01-29 12:19:03 +00:00
aacb1091df
Emscripten: call emscripten_sample_gamepad_data
Charlie Birks
2019-01-29 12:19:00 +00:00
8dab9c956f
Emscripten: Use set_canvas_element_size This will be needed for supporting multiple canvases and set_canvas_size is deprecated anyway.
Charlie Birks
2019-01-29 12:18:56 +00:00
ed66a430c9
Emscripten: Do not consume mouseup event outside of the canvas
kichikuou
2019-01-29 12:14:54 +00:00
2838abb5b2
Emscripten: fix duplicate mousebuttonup/mousebuttondown events when touch events are disabled
Sylvain Beucler
2019-01-29 12:14:44 +00:00
1767d09187
Emscripten: use a fake size for external sizing check The check would fail if the canvas happened to be the correct size already. (#66, mentioned in #58)
Charlie Birks
2019-01-29 12:14:41 +00:00
80d690a2a0
Emscripten: reset fullscreen_window when leaving fullscreen If the browser left fullscreen mode by the user pressing ESC, the next call to SDL_SetWindowFullscreen(1) will fail as it thinks the window is already fullscreen. (#65)
Charlie Birks
2019-01-29 12:14:33 +00:00
955d87894b
Android/openslES: set audio in paused/resumed state for Android event loop And also in "stopped" state before closing the device.
Sylvain Becker
2019-01-14 12:33:29 +01:00
59c8c7b684
Android/openslES: move a few static variables to SDL_PrivateAudioData structure
Sylvain Becker
2019-01-14 10:58:57 +01:00
5aeeaaab70
Android/openslES: register and use CloseDevice function.
Sylvain Becker
2019-01-14 10:16:26 +01:00
365fd9c602
Android/openslES: some space and indentation to match SDL conventions
Sylvain Becker
2019-01-14 10:04:54 +01:00
7dc92a7669
Initial Android OpenSL ES implementation, contributed by ANTA
Sam Lantinga
2019-01-12 12:18:44 -08:00
fb8cb95fbc
Fixed compiler warning
Sam Lantinga
2019-01-12 12:12:43 -08:00
390459d83e
Updated minimum supported Android version to API 16, to match latest NDK toolchain
Sam Lantinga
2019-01-12 12:11:06 -08:00
be991f3a78
Fixed bug 4453 - GLES / GLES2: first white renderer clear cmd is drawn as black
Sylvain Becker
2019-01-12 13:34:03 +01:00
7b42f03fd9
Android: move and group JNIEnv helper functions
Sylvain Becker
2019-01-11 21:52:43 +01:00
7f3478305f
Android: change the way JNIEnv is retrieved
Sylvain Becker
2019-01-11 21:42:52 +01:00
dc10d96cde
Android: use the same naming for JNI env local variables
Sylvain Becker
2019-01-11 15:36:16 +01:00
3cfd907df7
Android: Audio thread is already setup for the JVM In 'src/thread/pthread/SDL_systhread.c' RunThread() calls first 'Android_JNI_SetupThread()'
Sylvain Becker
2019-01-11 15:33:02 +01:00
9d82f4e985
Android: use pthread_once for creating thread key 'mThreadKey'
Sylvain Becker
2019-01-11 15:27:53 +01:00