Skip to content

Commit

Permalink
Fix for canvas.drawBitmap
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 12, 2009
1 parent ab481d3 commit febb63d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions io.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,16 +633,18 @@ o3djs.io.loadBitmaps = function(pack, url, callback, opt_generateMips) {
* texture is loaded. It will be passed the texture and an exception on
* error or null on success.
* @param {boolean} opt_generateMips Generate Mips. Default = true.
* @param {boolean} opt_flip Flip texture. Default = true.
* @return {!o3djs.io.LoadInfo} A LoadInfo to track progress.
* @see o3djs.io.loadBitmaps
* @see o3djs.loader.createLoader
*/
o3djs.io.loadTexture = function(pack, url, callback, opt_generateMips) {
o3djs.io.loadTexture = function(
pack, url, callback, opt_generateMips, opt_flip) {
function onLoaded(request, rawData, exception) {
var texture = null;
if (!exception) {
texture = o3djs.texture.createTextureFromRawData(
pack, rawData, opt_generateMips);
pack, rawData, opt_generateMips, opt_flip);
pack.removeObject(request);
}
callback(texture, exception);
Expand Down
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ o3djs.util.PLUGIN_NAME = 'O3D Plugin';
* utility libraries.
* @type {string}
*/
o3djs.util.REQUIRED_VERSION = '0.1.42.0';
o3djs.util.REQUIRED_VERSION = '0.1.42.4';

/**
* The width an O3D must be to put a failure message inside
Expand Down

0 comments on commit febb63d

Please sign in to comment.