     
     (let [image (js/Image.)]
       (aset image "onload"
-            (fn [] (let [texture {:data {:data image
-                                        :filter {:min :linear
-                                                 :mag :linear-mipmap-nearest}
-                                        :flip-y true
-                                        :texture-id 0}}]
+            (fn [] (let [texture {:data image
+                                 :filter {:min :linear
+                                          :mag :linear}
+                                 :flip-y true
+                                 :texture-id 0}]
                     (animate (draw-fn gl driver program) tick (assoc-in state [:scene :texture] texture)))))
       (aset image "src" "/images/crate.gif"))))

  (let [width     (.-clientWidth node)
        height    (.-clientHeight node)
        driver    (make-driver gl)
        program   (dp/program driver program-source)
        state (app-state width height)]
    
    (reset-gl-canvas! node)
    (.enable gl (.-DEPTH_TEST gl))
    (.clearColor gl 0 0 0 1)

(ns ^:figwheel-load gampg.learn-gamma.lesson-06
    (:require [clojure.string :as s]
              [gamma.api :as g]
              [gamma.program :as p]
              [gamma-driver.api :as gd]
              [gamma-driver.drivers.basic :as driver]
              [thi.ng.geom.core :as geom]
              [thi.ng.geom.core.matrix :as mat :refer [M44]]))

(def title
  "6. Keyboard input and texture filters")
