author Sam Lantinga <>
Sun, 14 Jul 2013 18:17:28 -0700
changeset 7523 9e9ab1dc3811
parent 7241 28602f5ca96d
permissions -rw-r--r--
Fixed bug 1919 - Window icon disappears as soon as a renderer is created


Setting a window icon works just fine until a renderer is added to the window.
After adding the renderer the icon disappears.

Reproduce by:
- Take the example code from the wiki:

- Add the following two lines after SDL_FreeSurface(surface);
SDL_Renderer* ren = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);

-compile and run

You will see the window icon correctly at first. After the Delay the Icon will disappear.
     1 The latest development version of SDL is available via Mercurial.
     2 Mercurial allows you to get up-to-the-minute fixes and enhancements;
     3 as a developer works on a source tree, you can use "hg" to mirror that
     4 source tree instead of waiting for an official release. Please look
     5 at the Mercurial website ( ) for more
     6 information on using hg, where you can also download software for
     7 Mac OS X, Windows, and Unix systems.
     9   hg clone
    11 If you are building SDL with an IDE, you will need to copy the file
    12 include/SDL_config.h.default to include/SDL_config.h before building.
    14 If you are building SDL via configure, you will need to run
    15 before running configure.
    17 There is a web interface to the subversion repository at:
    21 There is an RSS feed available at that URL, for those that want to
    22 track commits in real time.