Skip to content

Commit

Permalink
get completely rid of Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jul 11, 2017
1 parent b2248c8 commit bc26b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import GLFW
using ModernGL, Compat
using ModernGL
include("util.jl")

function is_ci()
Expand Down
6 changes: 3 additions & 3 deletions test/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,17 @@ function createcontextinfo()
else
error("Unexpected version number string. Please report this bug! OpenGL version string: $(glv)")
end
dict = @compat(Dict{Symbol,Any}(
dict = Dict{Symbol,Any}(
:glsl_version => glsl,
:gl_version => glv,
:gl_vendor => unsafe_string(glGetString(GL_VENDOR)),
:gl_renderer => unsafe_string(glGetString(GL_RENDERER)),
#:gl_extensions => split(unsafe_string(glGetString(GL_EXTENSIONS))),
))
)
end
function get_glsl_version_string()
if isempty(GLSL_VERSION)
error("couldn't get GLSL version, GLUTils not initialized, or context not created?")
end
return "#version $(GLSL_VERSION)\n"
end
end

0 comments on commit bc26b6d

Please sign in to comment.