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()
|
void RenderTexture::display()
|
||||||
{
|
{
|
||||||
// Update the target texture
|
// 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_impl->updateTexture(m_texture.m_texture);
|
||||||
m_texture.m_pixelsFlipped = true;
|
m_texture.m_pixelsFlipped = true;
|
||||||
|
|
Loading…
Reference in a new issue