Go Back   UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats > Anti-Cheat Software & Programming > Direct3D

- Sponsored Advertisement -
http://www.myfpscheats.com/

Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Direct3D
hacking programming reversing
You are Unregistered, please register to gain Full access.    
Reply
 
Thread Tools

How to reset textures
Old 07-18-2010, 01:16 PM   #1
Member

acid_buRn's Avatar

Join Date: Dec 2009
Posts: 68
Reputation: 384
Rep Power: 31
acid_buRn has learned Kazaa is not a third world countryacid_buRn has learned Kazaa is not a third world countryacid_buRn has learned Kazaa is not a third world countryacid_buRn has learned Kazaa is not a third world country
Points: 1,965, Level: 3
Points: 1,965, Level: 3 Points: 1,965, Level: 3 Points: 1,965, Level: 3
Activity: 2.3%
Activity: 2.3% Activity: 2.3% Activity: 2.3%
Last Achievements
How to reset textures

Im wondering how to reset cham textures.
I can use the chams fine on my computer, But some people say it DC after 1 game.

I am guessing its becuase i havent reset the textures.

I have tried to reset them like this:

PHP Code:
void ReColour(LPDIRECT3DDEVICE9 pDevice)
{
    if (
g_pDevice != pDevice)
    {
        
g_pDevice pDevice;
        try
        {
            if (
TexRed !=0)
                
TexRed->Release();
        } catch (...) {}
        
TexRed 0;
        
GenerateTexture(pDevice, &TexRed,Red);//Recreate Red

        
try
        {
            if (
TexGreen !=0)
                
TexGreen->Release();
        } catch (...) {}
        
TexGreen 0;
        
GenerateTexture(pDevice, &TexGreen,Green);//Recreate Green

        
try
        {
            if (
TexBlue !=0)
                
TexBlue->Release();
        } catch (...) {}
        
TexBlue 0;
        
GenerateTexture(pDevice, &TexBlue,Blue);//Recreate Blue

        
try
        {
            if (
TexBlack !=0)
                
TexBlack->Release();
        } catch (...) {}
        
TexBlack 0;
        
GenerateTexture(pDevice, &TexBlack,Black);//Recreate Black

        
try
        {
            if (
TexPurple !=0)
                
TexPurple->Release();
        } catch (...) {}
        
TexPurple 0;
        
GenerateTexture(pDevice, &TexPurple,Purple);//Recreate Purple
    
}

But that doesnt create the textures. It does nothing.
I use that same code with my font, and it works fine.

Could someone please help me and tell me if that code is ok?

Thanks,
acid

[Auto Merged - 22:53:32 UTC]

bumpy bump?

Anyone gna help me?
acid_buRn is offline

Reply With Quote

Reply  

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit



Tags
reset, textures
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 05:43 AM.