title: ttf Text wont show up in SDL
body: <p>No matter what i try i cant get my text to load into a texture in SDL 2.0 using SDL_ttf. </p>
  
  <p>Here is my textToTexture code</p>
  
  <pre><code>void sdlapp::textToTexture(string text, SDL_Color textColor,SDL_Texture* textTexture)
  {
      //free prevoius texture in textTexture if texture exists
      if (textTexture != nullptr || NULL)
      {
          SDL_DestroyTexture(textTexture);
      }
      SDL_Surface* textSurface = TTF_RenderText_Solid(m_font, text.c_str(), textColor);
      textTexture = SDL_CreateTextureFromSurface(m_renderer, textSurface);
      //free surface
      SDL_FreeSurface(textSurface);
  }
  </code></pre>
  
  <p>And then here is me loading the texture and text</p>
  
  <pre><code>bool sdlapp::loadMedia()
  {
      bool success = true;
      //load media here
  
      //load font
      m_font = TTF_OpenFont("Fonts/MotorwerkOblique.ttf", 28);
  
      //load text
      SDL_Color textColor = { 0x255, 0x255, 0x235 };
      textToTexture("im a texture thing", textColor, m_font_texture);
  
      return success;
  }
  </code></pre>
  
  <p>And then this is the code i am using to render it</p>
  
  <pre><code>void sdlapp::render()
  {
      //clear the screen
      SDL_RenderClear(m_renderer);
      //do render stuff here
      SDL_Rect rect= { 32, 64, 128, 32 };
      SDL_RenderCopy(m_renderer, m_font_texture, NULL, NULL);
      //update the screen to the current render
      SDL_RenderPresent(m_renderer);
  }
  </code></pre>
  
  <p>Does anyone know what i am doing wrong?
  Thanks in Advance, JustinWeq.</p>