                                  (log/info "Created font texture " font-parameters " screen-width" screen-width "screen-height" screen-height)
                                  (swap! font-textures assoc
                                                      (font-key new-font)
-                                                     {:screen-width screen-width
-                                                      :screen-height screen-height
+                                                     {:frame-buffer-width screen-width
+                                                      :frame-buffer-height screen-height
                                                       :character-width character-width
                                                       :character-height character-height
                                                       :character->col-row character->col-row

          ;fg-texture       (texture-id next-pow-2-columns next-pow-2-rows (count layer-order) fg-image-data)
          bg-texture       (with-gl-context gl-lock window capabilities (texture-id next-pow-2-columns next-pow-2-rows (count layer-order) bg-image-data))
          [fbo-id fbo-texture]
                           (with-gl-context gl-lock window capabilities (fbo-texture screen-width screen-height))
          ; init shaders
          [^int pgm-id
           ^int fb-pgm-id]      (with-gl-context gl-lock window capabilities (init-shaders (get fx-shader :name)))

           (GLFW/glfwMakeContextCurrent window)
           (GLFW/glfwSwapInterval 1)
           (GLFW/glfwShowWindow window)
           (let [capabilities (GL/createCapabilities)
                 width-buffer (BufferUtils/createIntBuffer 1)
                 height-buffer (BufferUtils/createIntBuffer 1)]
             (GLFW/glfwGetFramebufferSize window width-buffer height-buffer)
             (let [frame-buffer-width (.get width-buffer)
                   frame-buffer-height (.get height-buffer)]
               (GL11/glViewport 0 0 frame-buffer-width frame-buffer-height)
               (GLFW/glfwMakeContextCurrent 0)
               ;; Signal to parent that display has been created
               [window
                capabilities
                frame-buffer-width
                frame-buffer-height]))))
     (throw (RuntimeException. "Failed to create the GLFW window")))))

(defn- load-shader
