title: CCSprite setTexture creates black square cocos2d (iOS)
body: <p>I am trying to make a screen where I am listing questions with anwers. Good answer should have a green marker, bad answers should have red markers.</p>
  
  <p>When I create the screen, I set all markers to green or red. When I load the question and answers from a website I am changing the markers to represent the right/wrong answers.</p>
  
  <p>My problem is that instead of having the new marker appear, I am receiving a black square where the new maker should be. The weird thing is that if I have set the markers originally green than the green marker still appear, but the red ones are not and viva-versa.</p>
  
  <p>Here is my code for the marker change:</p>
  
  <pre><code>-(void) SetMarker:(int)ToColor {
  
  switch (ToColor) {
      case Marker_Red: {
          [Marker_Sprite setTexture:[[CCSprite spriteWithFile:@"RedDot.png"] texture]];
              break;
      }
      case Marker_Green: {
          [Marker_Sprite setTexture:[[CCSprite spriteWithFile:@"GreenDot.png"] texture]];
          break;
      }
      default:
          break;
  }
  }
  </code></pre>
  
  <p>I am using Cocos2d version 2.</p>