mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	ASSERT that shader was linked successfully
This commit is contained in:
		
							parent
							
								
									4088afe23c
								
							
						
					
					
						commit
						fc4591fa49
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -4,6 +4,7 @@ | |||
| 
 | ||||
| #include <vector> | ||||
| #include <glad/glad.h> | ||||
| #include "common/assert.h" | ||||
| #include "common/logging/log.h" | ||||
| #include "video_core/renderer_opengl/gl_shader_util.h" | ||||
| 
 | ||||
|  | @ -87,6 +88,7 @@ GLuint LoadProgram(const char* vertex_shader, const char* fragment_shader) { | |||
|         LOG_ERROR(Render_OpenGL, "Vertex shader:\n%s", vertex_shader); | ||||
|         LOG_ERROR(Render_OpenGL, "Fragment shader:\n%s", fragment_shader); | ||||
|     } | ||||
|     ASSERT_MSG(result == GL_TRUE, "Shader not linked"); | ||||
| 
 | ||||
|     glDeleteShader(vertex_shader_id); | ||||
|     glDeleteShader(fragment_shader_id); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue