GlFunctions: Add driver info to error message
This commit is contained in:
		
							parent
							
								
									6d5a021f04
								
							
						
					
					
						commit
						45a967b3cd
					
				
					 1 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -99,7 +99,14 @@ void initGLFunctions()
 | 
			
		|||
	int glMajor = *ver - '0';
 | 
			
		||||
 | 
			
		||||
	if (glMajor < 2)
 | 
			
		||||
		throw EXC("At least OpenGL (ES) 2.0 is required");
 | 
			
		||||
	{
 | 
			
		||||
		throw Exception(Exception::MKXPError,
 | 
			
		||||
		                "At least OpenGL (ES) 2.0 is required\n\nDriver:\n%s\n%s\n%s\n%s",
 | 
			
		||||
		                gl.GetString(GL_VENDOR),
 | 
			
		||||
		                gl.GetString(GL_RENDERER),
 | 
			
		||||
		                gl.GetString(GL_VERSION),
 | 
			
		||||
		                gl.GetString(GL_SHADING_LANGUAGE_VERSION));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (gles)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue