With Microsoft Visual Studio 2012, I have a project (https://github.com/ThrosturX/freespace/), I can build this project using the Debug
build configuration -- interactive stars in the background, a planet and a controllable space ship.
However, when I build with the Release
configuration, nothing is rendered on the screen -- it is simply rendered black. The window is created, however, and my hooks (while(SDL_PollEvent(&e))
) seem to be working, since Escape terminates the program, as does pressing the x
at the top of the window to close it.
Attempting to find the root of this cause, I created a new build configuration dist
which used Debug
as a template (thus copying Debug
exactly, I assume). Attempting to build and run the program with this build configuration, however, behaves exactly as with the Release
build configuration -- only black is rendered in the window.
My project uses SDL2 to render graphics. Please let me know what information I can supply to help diagnose the problem. Any ideas?
Update: I have found that adding a few dll's that are in my \lib folder to the output directory ("Release") fixes the issue, so I now just have to find out how to bundle all of the dll's into the .exe properly.