mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Examples: OpenGL2, OpenGL3: Added glPixelStorei() calls borrowed from SDL examples.
This commit is contained in:
		| @@ -141,6 +141,7 @@ bool ImGui_ImplOpenGL2_CreateFontsTexture() | ||||
|     glBindTexture(GL_TEXTURE_2D, g_FontTexture); | ||||
|     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | ||||
|     glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | ||||
|     glPixelStorei(GL_UNPACK_ROW_LENGTH, 0); | ||||
|     glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels); | ||||
|  | ||||
|     // Store our identifier | ||||
|   | ||||
		Reference in New Issue
	
	Block a user