mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 07:32:35 +00:00
Disable MESA opengl/glsl override enviroment vars for now, disable vbo/vao for now
This commit is contained in:
@@ -22,10 +22,10 @@ when :OPENGL_PLATFORM_MACOSX
|
||||
GLU.load_lib("libGLU.dylib", "/System/Library/Frameworks/OpenGL.framework/Libraries")
|
||||
when :OPENGL_PLATFORM_LINUX
|
||||
# Black magic to get GLSL 3.30 support on older Intel hardware
|
||||
if `glxinfo | egrep "OpenGL vendor|OpenGL renderer"`.include?("Intel")
|
||||
ENV["MESA_GL_VERSION_OVERRIDE"] = "3.3"
|
||||
ENV["MESA_GLSL_VERSION_OVERRIDE"] = "330"
|
||||
end
|
||||
# if `glxinfo | egrep "OpenGL vendor|OpenGL renderer"`.include?("Intel")
|
||||
# ENV["MESA_GL_VERSION_OVERRIDE"] = "3.3"
|
||||
# ENV["MESA_GLSL_VERSION_OVERRIDE"] = "330"
|
||||
# end
|
||||
|
||||
gl_library_path = nil
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ class IMICFPS
|
||||
|
||||
puts "#{@file_path.split('/').last} took #{((Process.clock_gettime(Process::CLOCK_MONOTONIC, :float_millisecond)-start_time)/1000.0).round(2)} seconds to parse" if $debug.get(:stats)
|
||||
|
||||
allocate_gl_objects
|
||||
populate_vertex_buffer
|
||||
configure_vao
|
||||
# allocate_gl_objects
|
||||
# populate_vertex_buffer
|
||||
# configure_vao
|
||||
|
||||
@objects.each {|o| @vertex_count+=o.vertices.size}
|
||||
@objects.each_with_index do |o, i|
|
||||
|
||||
Reference in New Issue
Block a user