Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » OpenGL texture issues
Re: OpenGL texture issues [message #40711 is a reply to message #40710] Sun, 08 September 2013 07:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14256
Registered: November 2005
Ultimate Member
mirek wrote on Sun, 08 September 2013 01:30


- it looks to like OpenGL expects textures in non-premultiplies format. In that case we need to unmultiply Image, right? (I have not seen any such thing in CoreGL/resources.cpp, but I might be missing something).



Ha, 2 minutes after posting, I have found in CoreGL

	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);


which, AFAIK, should exactly switch OpenGL to premultiplied alpha mode, right? Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Tutorial] Using the Visual Studio IDE with U++
Next Topic: Serialization technique
Goto Forum:
  


Current Time: Sat May 03 14:27:24 CEST 2025

Total time taken to generate the page: 0.00851 seconds