mirror of
https://github.com/SFML/SFML.git
synced 2025-02-16 21:38:00 +08:00
Fixed RenderTexture::display() dereferencing a NULL pointer when being called before RenderTexture::create().
This commit is contained in:
parent
6e84b2d97d
commit
b9303866a6
@ -161,7 +161,7 @@ bool RenderTexture::setActive(bool active)
|
||||
void RenderTexture::display()
|
||||
{
|
||||
// Update the target texture
|
||||
if (priv::RenderTextureImplFBO::isAvailable() || setActive(true))
|
||||
if (m_impl && (priv::RenderTextureImplFBO::isAvailable() || setActive(true)))
|
||||
{
|
||||
m_impl->updateTexture(m_texture.m_texture);
|
||||
m_texture.m_pixelsFlipped = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user