mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-16 00:08:15 +00:00
WARNING: Issues on web building
Found some issues when building for web using latest emscripten 1.38.30, traced the error and found that eglGetProcAdress does not return function pointers for VAO functionality, supported by extension. It requires more investigation but now it works (avoiding VAO usage)
This commit is contained in:
@@ -3172,7 +3172,8 @@ static void PollInputEvents(void)
|
||||
// NOTE: GLFW3 joystick functionality not available in web
|
||||
#if defined(PLATFORM_WEB)
|
||||
// Get number of gamepads connected
|
||||
int numGamepads = emscripten_get_num_gamepads();
|
||||
int numGamepads = 0;
|
||||
if (emscripten_sample_gamepad_data() == EMSCRIPTEN_RESULT_SUCCESS) numGamepads = emscripten_get_num_gamepads();
|
||||
|
||||
for (int i = 0; (i < numGamepads) && (i < MAX_GAMEPADS); i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user