aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRemi Papillie <remi.papillie@gmail.com>2013-10-14 21:22:52 +0200
committerRemi Papillie <remi.papillie@gmail.com>2013-10-14 21:22:52 +0200
commit22dec34bc033884f8355e36b20eb6afff0c02ff7 (patch)
tree71995603177660adde92e1854e47988997324ba4 /src
parentbf712e0f70660d855d39a9ac5769bcdc559f17b5 (diff)
Minor fixes and improvements
Diffstat (limited to 'src')
-rw-r--r--src/library_browser.js2
-rw-r--r--src/library_sdl.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/library_browser.js b/src/library_browser.js
index 1c2f2e7f..59d2945e 100644
--- a/src/library_browser.js
+++ b/src/library_browser.js
@@ -247,7 +247,7 @@ mergeInto(LibraryManager.library, {
}
#if GL_TESTING
- contextAttributes.preserveDrawingBuffer = true
+ contextAttributes.preserveDrawingBuffer = true;
#endif
ctx = canvas.getContext('experimental-webgl', contextAttributes);
diff --git a/src/library_sdl.js b/src/library_sdl.js
index dc972bd6..bb7e9264 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -2268,7 +2268,7 @@ var LibrarySDL = {
SDL_GL_SetAttribute: function(attr, value) {
if (!(attr in SDL.glAttributes)) {
- throw "Unknown SDL GL attribute. Please check if your SDL version is supported.";
+ abort('Unknown SDL GL attribute (' + attr + '). Please check if your SDL version is supported.');
}
SDL.glAttributes[attr] = value;
@@ -2276,7 +2276,7 @@ var LibrarySDL = {
SDL_GL_GetAttribute: function(attr, value) {
if (!(attr in SDL.glAttributes)) {
- throw "Unknown SDL GL attribute. Please check if your SDL version is supported.";
+ abort('Unknown SDL GL attribute (' + attr + '). Please check if your SDL version is supported.');
}
if (value) {{{ makeSetValue('value', '0', 'SDL.glAttributes[attr]', 'i32') }}};