From da9b0212c2fec4db19a6fe8297d79270af314428 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Tue, 13 Aug 2019 10:26:37 -0500 Subject: [PATCH] Disable MESA opengl/glsl override enviroment vars for now, disable vbo/vao for now --- i-mic-fps.rb | 8 ++++---- lib/wavefront/model.rb | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/i-mic-fps.rb b/i-mic-fps.rb index 4f7dcb1..a0512a5 100644 --- a/i-mic-fps.rb +++ b/i-mic-fps.rb @@ -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 diff --git a/lib/wavefront/model.rb b/lib/wavefront/model.rb index e052893..938c99d 100644 --- a/lib/wavefront/model.rb +++ b/lib/wavefront/model.rb @@ -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|