| 
				
			 | 
			
			
				@@ -1,3 +1,6 @@ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				1
			 | 
			
			
				+#include "gl_core_3_0.hpp" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				2
			 | 
			
			
				+#include <GL/gl.h> 
			 | 
		
	
		
			
			| 
				
			 | 
			
				3
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				1
			 | 
			
				4
			 | 
			
			
				 #include <chrono> 
			 | 
		
	
		
			
			| 
				2
			 | 
			
				5
			 | 
			
			
				 #include <thread> 
			 | 
		
	
		
			
			| 
				3
			 | 
			
				6
			 | 
			
			
				  
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -86,6 +89,10 @@ slop::SlopSelection slop::SlopSelect( slop::SlopOptions* options, bool* cancelle 
			 | 
		
	
		
			
			| 
				86
			 | 
			
				89
			 | 
			
			
				         // If we have a compositor, we try using OpenGL 
			 | 
		
	
		
			
			| 
				87
			 | 
			
				90
			 | 
			
			
				         try { 
			 | 
		
	
		
			
			| 
				88
			 | 
			
				91
			 | 
			
			
				             window = new SlopWindow(); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				92
			 | 
			
			
				+	    if (!gl::sys::IsVersionGEQ(3,0)) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				93
			 | 
			
			
				+		delete window; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				94
			 | 
			
			
				+                throw new std::runtime_error( "OpenGL version is not high enough, slop requires OpenGL 3.0!\nOpenGL accelleration is disabled. Use -o or -q to suppress this message." ); 
			 | 
		
	
		
			
			| 
				
			 | 
			
				95
			 | 
			
			
				+	    } 
			 | 
		
	
		
			
			| 
				89
			 | 
			
				96
			 | 
			
			
				             success = true; 
			 | 
		
	
		
			
			| 
				90
			 | 
			
				97
			 | 
			
			
				         } catch( std::exception* e ) { 
			 | 
		
	
		
			
			| 
				91
			 | 
			
				98
			 | 
			
			
				             errorstring += std::string(e->what()) + "\n"; 
			 |