|  | @@ -1906,14 +1906,14 @@ void tnsReconfigureTextureParameters(int Multisample){
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  tnsTexture *tnsCreate2DTexture(GLint glInternalFormat, int w, int h, int Multisample){
 | 
	
		
			
				|  |  | -    tnsTexture *tex = CreateNew(tnsTexture);
 | 
	
		
			
				|  |  | +    tnsTexture *tex = memAcquire(sizeof(tnsTexture));
 | 
	
		
			
				|  |  |      tnsInit2DTexture(tex, glInternalFormat, w, h, Multisample);
 | 
	
		
			
				|  |  |      laNotifyUsers("tns.texture_list");
 | 
	
		
			
				|  |  |      lstAppendItem(tKnlGetTextureList(), tex);
 | 
	
		
			
				|  |  |      return tex;
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  tnsTexture *tnsCreate3DTexture(GLint glInternalFormat, int w, int h, int slices){
 | 
	
		
			
				|  |  | -    tnsTexture *tex = CreateNew(tnsTexture);
 | 
	
		
			
				|  |  | +    tnsTexture *tex = memAcquire(sizeof(tnsTexture));
 | 
	
		
			
				|  |  |      tnsInit3DTexture(tex, glInternalFormat, w, h, slices);
 | 
	
		
			
				|  |  |      laNotifyUsers("tns.texture_list");
 | 
	
		
			
				|  |  |      lstAppendItem(tKnlGetTextureList(), tex);
 | 
	
	
		
			
				|  | @@ -2031,7 +2031,7 @@ void tnsDeleteTexture(tnsTexture *t){
 | 
	
		
			
				|  |  |      laNotifyUsers("tns.texture_list");
 | 
	
		
			
				|  |  |      lstRemoveItem(lst, t);
 | 
	
		
			
				|  |  |      if (t->DrawData) FreeMem(t->DrawData);
 | 
	
		
			
				|  |  | -    FreeMem(t);
 | 
	
		
			
				|  |  | +    memFree(t);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  int tnsTextureMemorySize(tnsTexture *t, int Mem){
 |