Example #1
0
 void GLES2Texture::notifyOnContextLost()
 {
     if (!mIsManual) 
     {
         freeInternalResources();
     }
     else
     {
         OGRE_CHECK_GL_ERROR(glDeleteTextures(1, &mTextureID));
         mTextureID = 0;
     }
 }
Example #2
0
    GLTexture::~GLTexture()
    {
        // have to call this here reather than in Resource destructor
        // since calling virtual methods in base destructors causes crash
		if (isLoaded())
		{
			unload(); 
		}
		else
		{
			freeInternalResources();
		}
    }
 void GLESTexture::notifyOnContextLost()
 {
     if (!mIsManual)
     {
         freeInternalResources();
     }
     else
     {
         glDeleteTextures(1, &mTextureID);
         GL_CHECK_ERROR;
         mTextureID = 0;
     }
 }
Example #4
0
	//-----------------------------------------------------------------------------
	void Texture::unloadImpl(void)
	{
		freeInternalResources();
	}