Skip to content

Commit

Permalink
Rolled back to RAM by default for textures (not working on hardware)
Browse files Browse the repository at this point in the history
  • Loading branch information
firew0lf committed Dec 28, 2015
1 parent 7359512 commit b4f5365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/texture.c
Expand Up @@ -35,13 +35,13 @@ int getType(const char *name) {
Load a texture from a file. Supported formats: PNG, JPEG, BMP.
@function load
@tparam string path path to the image file
@tparam[opt=PLACE_VRAM] number place where to put the loaded texture
@tparam[opt=PLACE_RAM] number place where to put the loaded texture
@tparam[opt=auto] number type type of the image
@treturn texture the loaded texture object
*/
static int texture_load(lua_State *L) {
const char *path = luaL_checkstring(L, 1);
u8 place = luaL_optinteger(L, 2, SF2D_PLACE_VRAM); //place in vram by default
u8 place = luaL_optinteger(L, 2, SF2D_PLACE_RAM); //place in vram by default
u8 type = luaL_optinteger(L, 3, 3); //type 3 is "search at the end of the filename"

texture_userdata *texture;
Expand Down

0 comments on commit b4f5365

Please sign in to comment.