Skip to content

Commit

Permalink
Disable MESA opengl/glsl override enviroment vars for now, disable vb…
Browse files Browse the repository at this point in the history
…o/vao for now
  • Loading branch information
cyberarm committed Aug 13, 2019
1 parent 04ebb8c commit da9b021
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions i-mic-fps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
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

Expand Down
6 changes: 3 additions & 3 deletions lib/wavefront/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def initialize(file_path:, entity: nil)

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|
Expand Down

0 comments on commit da9b021

Please sign in to comment.