remove 'gl_samples' parameter (it was used from antialiasing, but we have a bitmap font, so we don't want antialiasing)
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
int CONTEXT_VERSION_MAJOR = GLFW_CONTEXT_VERSION_MAJOR;
|
int CONTEXT_VERSION_MAJOR = GLFW_CONTEXT_VERSION_MAJOR;
|
||||||
int DEPRECATED = GLFW_DECORATED;
|
int DEPRECATED = GLFW_DECORATED;
|
||||||
int GLFW_FFI_FALSE = GLFW_FALSE;
|
int GLFW_FFI_FALSE = GLFW_FALSE;
|
||||||
int SAMPLES = GLFW_SAMPLES;
|
|
||||||
|
|
||||||
// GLFW functions used below
|
// GLFW functions used below
|
||||||
void init() {
|
void init() {
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ struct
|
|||||||
_symbol "DEPRECATED" public : ( unit -> int ) * ( int -> unit );
|
_symbol "DEPRECATED" public : ( unit -> int ) * ( int -> unit );
|
||||||
val (FALSE, _) =
|
val (FALSE, _) =
|
||||||
_symbol "GLFW_FFI_FALSE" public : ( unit -> int ) * ( int -> unit );
|
_symbol "GLFW_FFI_FALSE" public : ( unit -> int ) * ( int -> unit );
|
||||||
val (SAMPLES, _) =
|
|
||||||
_symbol "SAMPLES" public : ( unit -> int ) * ( int -> unit );
|
|
||||||
|
|
||||||
(* GLFW functions. *)
|
(* GLFW functions. *)
|
||||||
val init = _import "init" public : unit -> unit;
|
val init = _import "init" public : unit -> unit;
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ struct
|
|||||||
val _ = Glfw.init ()
|
val _ = Glfw.init ()
|
||||||
val _ = Glfw.windowHint (Glfw.CONTEXT_VERSION_MAJOR (), 3)
|
val _ = Glfw.windowHint (Glfw.CONTEXT_VERSION_MAJOR (), 3)
|
||||||
val _ = Glfw.windowHint (Glfw.DEPRECATED (), Glfw.FALSE ())
|
val _ = Glfw.windowHint (Glfw.DEPRECATED (), Glfw.FALSE ())
|
||||||
val _ = Glfw.windowHint (Glfw.SAMPLES (), 4)
|
|
||||||
val window = Glfw.createWindow (1920, 1080, "shf")
|
val window = Glfw.createWindow (1920, 1080, "shf")
|
||||||
val _ = Glfw.makeContextCurrent window
|
val _ = Glfw.makeContextCurrent window
|
||||||
val _ = Gles3.loadGlad ()
|
val _ = Gles3.loadGlad ()
|
||||||
|
|||||||
Reference in New Issue
Block a user