Disable MESA opengl/glsl override enviroment vars for now, disable vbo/vao for now

This commit is contained in:
2019-08-13 10:26:37 -05:00
parent 04ebb8ccd3
commit da9b0212c2
2 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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|