summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Galitz <grantgalitz@gmail.com>2016-01-29 23:51:15 -0500
committerGrant Galitz <grantgalitz@gmail.com>2016-01-29 23:51:15 -0500
commit1c3c4bd0fc76d616d9ce1ef0786bcf77a4ca9c5c (patch)
tree35b87110b388bd449b127ec5a488cd3e95171253
parent4ba390f4b260e9134068171fb0b0b772aa4f2a66 (diff)
parenta6045372a9b62abd026455896657228e72f34083 (diff)
downloadIodineGBA-1c3c4bd0fc76d616d9ce1ef0786bcf77a4ca9c5c.zip
IodineGBA-1c3c4bd0fc76d616d9ce1ef0786bcf77a4ca9c5c.tar.gz
IodineGBA-1c3c4bd0fc76d616d9ce1ef0786bcf77a4ca9c5c.tar.bz2
Merge branch 'master' into gh-pages
-rw-r--r--IodineGBA/core/graphics/RendererShim.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/IodineGBA/core/graphics/RendererShim.js b/IodineGBA/core/graphics/RendererShim.js
index 955a44e..bd80f72 100644
--- a/IodineGBA/core/graphics/RendererShim.js
+++ b/IodineGBA/core/graphics/RendererShim.js
@@ -109,8 +109,8 @@ GameBoyAdvanceGraphicsRendererShim.prototype.shareDynamicBuffers = function () {
GameBoyAdvanceGraphicsRendererShim.prototype.pushCommand = function (command, data) {
command = command | 0;
data = data | 0;
- //Block while full:
- this.blockIfCommandBufferFull();
+ //Check if buffer is full:
+ this.checkCommandBufferFull();
//Get the write offset into the ring buffer:
var endCorrected = this.end & this.gfxCommandBufferMask;
//Push command into buffer:
@@ -120,7 +120,7 @@ GameBoyAdvanceGraphicsRendererShim.prototype.pushCommand = function (command, da
//Update the cross thread buffering count:
this.end = ((this.end | 0) + 2) | 0;
}
-GameBoyAdvanceGraphicsRendererShim.prototype.blockIfCommandBufferFull = function () {
+GameBoyAdvanceGraphicsRendererShim.prototype.checkCommandBufferFull = function () {
if ((this.start | 0) == (((this.end | 0) - (this.gfxCommandBufferLength | 0)) | 0)) {
//Give the reader our updated counter and tell it to run:
this.synchronizeWriter();