-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #499 - Fixed to show empty space when image/artwork fails to load
Recent changes inadvertently introduced this bug. Committing this in prep for a patch release 2.5.1
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b263963
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found one problem that did not exist before. Every time when you call
m_texture = sf::Texture()
you loose smoothing and it needs to be set again, so now on navigation the smoothing is reset when no texture is found. Also SWF files do not react to changes to smoothing property and they are always pixelated. Since AM do not store the smoothing in any variable, it just sets thesetSmooth()
once I think it's neccessary to store the smoothing state inm_smooth
and reapply it every time you load a new texture or swf.b263963
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides now when you pass the non existing texture to the shader with
set_texture_param()
you have undefined behaviour in the shader. My PR #503 fixes that, but for some reason you have decided not to include it.b263963
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smoothing fixed in PR #506