aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/audio_server_javascript.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-02-17X11: Move audio driver finalize to the start of cleanupHein-Pieter van Braam1-4/+4
The audio driver cleanup needs to happen at the start of finish otherwise a race still seems to exist with the destruction of the audioserver. I think that destroying the X resoures before has something to do with it.
2017-02-17X11: Finalize audiodrivers on exitHein-Pieter van Braam1-1/+4
The audiodrivers loaded by OS_X11 are not destroyed before the audioserver is. This causes a segfault on exit. The code is taken from os_windows.cpp which did have the cleanup code.
2017-02-16Correct hash behavior for floating point numbersHein-Pieter van Braam14-51/+273
This fixes HashMap where a key or part of a key is a floating point number. To fix this the following has been done: * HashMap now takes an extra template argument Comparator. This class gets used to compare keys. The default Comperator now works correctly for common types and floating point numbets. * Variant implements ::hash_compare() now. This function implements nan-safe comparison for all types with components that contain floating point numbers. * Variant now has a VariantComparator which uses Variant::hash_compare() safely compare floating point components of variant's types. * The hash functions for floating point numbers will now normalize NaN values so that all floating point numbers that are NaN hash to the same value. C++ module writers that want to use HashMap internally in their modules can now also safeguard against this crash by defining their on Comperator class that safely compares their types. GDScript users, or writers of modules that don't use HashMap internally in their modules don't need to do anything. This fixes #7354 and fixes #6947.
2017-02-16a ton of bug fixes to the rendererJuan Linietsky13-65/+214
2017-02-15Many fixes to make exported scenes work better, still buggy.Juan Linietsky22-604/+238
2017-02-15-begin of export work, not done yetJuan Linietsky9-844/+362
-fixes to make scenes exported from godot 2.x work
2017-02-15SceneTreeTimer: Ability to set pause modeAndreas Haas2-4/+22
Adds an additional flag to SceneTree::create_timer() that tells it whether or not to process when the game is paused. Defaults to false in order to not break existing functionality.
2017-02-14Revert "Make nan==nan true for GDScript"Juan Linietsky9-99/+26
2017-02-14Make nan==nan true for GDScriptHein-Pieter van Braam9-26/+99
After discussing this with Reduz this seemed like the best way to fix #7354. This will make composite values that contain NaN in the same places as well as the same other values compare as the same. Additionally non-composite values now also compare equal if they are both NaN. This breaks IEEE specifications but this is probably what most users expect. There is a GDScript function check for NaN if the user needs this information. This fixes #7354 and probably also fixes #6947
2017-02-14Spinbox: don't ignore double clicks.Andreas Haas1-2/+0
Fixes the problem with spinboxes not updating when clicking too fast.
2017-02-13Fix missing semicolon in previous commitRémi Verschelde1-1/+1
2017-02-13Remove bounds check when resuming from yield.Hein-Pieter van Braam1-1/+1
The code would get a pointer to the beginning of the call_args by using operator[] at the stack Vector. This does bound checking. When there are no call_args this bound check fails and the error mentioned in #7796 gets triggered. This bound check is actually not necessary as call_args just gets set to NULL and never dereferenced. This new code will just unconditionally set the pointer to the place where the call_args are if there are any. There is no NULL check for call_args anywhere so this is safe. Fixes #7796
2017-02-13Fix for issue #7766Brett-Mitchell1-1/+2
Add initialization for OS_OSX.mouse_mode in OS_OSX::OS_OSX(). mouse_mode now defaults to OS::MOUSE_MODE_VISIBLE.
2017-02-13Fix compile error with TextureButtongeequlim2-23/+22
Export TextureButton::ResizeMode as its own enum values
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam297-5443/+5445
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam167-1195/+1192
This saves typing and is a step towards fixing #56
2017-02-13ProjectSettings: InputMap dialog fixesAndreas Haas2-5/+11
Now the selection jumps to the correct action after a new event has been added. Also sets the default device id for Joypad button events to 0.
2017-02-13Update attach/clear script tool bar icon in Scene panelvolzhs1-0/+4
2017-02-11Fix glitches when sampling relative cursor data in CAPTURED mouse mode on ↵Saracen1-2/+3
Windows.
2017-02-10Solve TouchScreenButtons issuesPedro J. Estébanez2-85/+56
Fix touch button needing double tap after pause (applies to those not set to pass-by) Fix error when a pressed TouchScreenButton with no associated action exits the tree (with some refactoring of duplicate code)
2017-02-10Particles2D: implement texture flip parameters.Andreas Haas1-0/+4
2017-02-09Add a simple signal handler for SIGCHLD on UnixHein-Pieter van Braam1-1/+15
This fixes #6631
2017-02-09Remove memdelete of button in GIProbeEditor exitKenneth Lorthioir1-2/+0
This issue was causing a heap corruption on windows.
2017-02-09Close out audio drivers when exiting.Kenneth Lorthioir1-0/+5
Prevents a crash when closing the project manager.
2017-02-09Removed DX9 Rasterizer in windows.Kenneth Lorthioir2-8/+0
This doesn't seem to be needed anymore and the code to free the unused rasterizer was throwing a memory violation since it was getting set to a value somehow.
2017-02-09Add STRETCH_KEEP_ASPECT_COVERED to TextureRect StretchModegeequlim4-44/+133
Make TextureButton to the same resize behavior with TextureRect
2017-02-09Make _sc_ files work like ._sc_, fixes #7762Bojidar Marinov1-1/+8
2017-02-08Fixed compilation issues with Visual StudioKenneth Lorthioir3-1/+8
2017-02-09Reorder the folders in tools to prepare moving tools/editorRémi Verschelde130-158/+152
- `certs` and `editor_fonts` go to `thirdparty` - `dist` and `scripts` go to a new `misc` folder - `collada` and `doc` go to `tools/editor` The next step will be to rename `tools/editor` to `editor` directly, but this will be done at the right time to avoid breaking too many PRs.
2017-02-08Added "Scots" locale name, fixing #7630Nuno Donato1-0/+1
2017-02-08Save and restore debug optionsvolzhs5-14/+38
2017-02-08basic contact shadows implementation, will most likely need some polishingJuan Linietsky7-33/+155
2017-02-07HTTPClient properly handle partial data in non-blocking modeFabio Alessandrelli1-2/+4
Use block to send DVector::Write out of scope in HTTPClient::read_response_body_chunk()
2017-02-07Fix tween Transform2D typosanikoyes1-3/+3
2017-02-07Fix msvc compile errorsanikoyes2-2/+2
2017-02-06shadows were not working in-editor for nvidia, fixed nowJuan Linietsky7-11/+24
2017-02-06JSON::parse reports errors on open-ended objectsKarroffel1-2/+2
2017-02-06Add editor option for automatically closing the output when stopping the game.mbalint122-0/+9
2017-02-06ability to adjust propagation in gi probeJuan Linietsky9-15/+101
2017-02-06Several bugfixes, improving the import workflowJuan Linietsky31-148/+476
2017-02-04Ensure proper config version when reading the new configuration file.Juan Linietsky2-2/+15
2017-02-04Renamed engine.cfg to godot.cfg, to forcefully break compatibility with 2.xJuan Linietsky41-271/+271
2017-02-04completed scene importing (I hope?)Juan Linietsky5-10/+227
2017-02-04Fix parsing bug which causes range(variable) to crash the enginelonesurvivor1-4/+3
problem was a segmentation fault caused by trying to access Vector constants[0] which isn't there if op->arguments.size() is not bigger than one. - the changed OR condition didn't make sense (always true), should be AND - changes the "constant" variable to be false per default and gets set to true when there is actually something pushed to "constants"
2017-02-04fix continous reimport bug (i hope)Juan Linietsky1-2/+27
2017-02-04Scene import more or less working, needs some missing features.Juan Linietsky5-6/+1297
2017-02-03Fixed property setter in G6DOF jointm4nu3lf1-1/+1
2017-02-03Changed OGG Vorbis type to be imported, so it's possible to specify loopJuan Linietsky5-76/+184
2017-02-03Selected text is now deselected on ctrl+home/endkbake1-14/+25
This fixes Issue #7694 and also the error mentioned in the comments of that issue.
2017-02-03OBJ file importing!Juan Linietsky7-4/+269