diff options
| -rw-r--r-- | demo/main.lua | 12 | ||||
| -rw-r--r-- | src/texture.c | 4 | 
2 files changed, 10 insertions, 6 deletions
| diff --git a/demo/main.lua b/demo/main.lua index 34f9e6f..75b9966 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -9,9 +9,15 @@ FPSCamera.movement_speed = 5  honey.input.key.bind(honey.input.key.escape, honey.exit)  local buffer = false -honey.input.key.bind(honey.input.key.f, function(action) if action == 1 then buffer = not buffer end end) - -                     local tex = honey.texture.load('lowres.png', {minFilter='nearest', magFilter='nearest'}) +honey.input.key.bind(honey.input.key.f, +                     function(action) +                        if action == 1 then +                           buffer = not buffer +                        end +end) +                      +local tex = honey.texture.load('lowres.png', +                               {minFilter='nearest', magFilter='nearest'})  local sceneRoot = Node.new() diff --git a/src/texture.c b/src/texture.c index 2bcc1e2..32240c6 100644 --- a/src/texture.c +++ b/src/texture.c @@ -385,10 +385,8 @@ static void configure_mag_filter(lua_State* L, void* data)      honey_texture_params* params = (honey_texture_params*) data;      const char* str = lua_tostring(L, -1); -    if (strcmp(str, "nearest") == 0) { -        printf("MAG FILTER NEAREST\n"); +    if (strcmp(str, "nearest") == 0)          params->mag_filter = GL_NEAREST; -    }      else if (strcmp(str, "linear") == 0)          params->mag_filter = GL_LINEAR;      else | 
