Blame stellarium-0.8.2-x64_2.patch
|
|
480053d |
--- stellarium-0.8.2/src/stel_core.cpp~ 2006-11-13 23:06:16.000000000 +0100
|
|
|
480053d |
+++ stellarium-0.8.2/src/stel_core.cpp 2006-11-13 23:06:16.000000000 +0100
|
|
|
480053d |
@@ -70,8 +70,6 @@
|
|
|
480053d |
dataRoot = DATA_ROOT;
|
|
|
480053d |
recordActionCallback = recordCallback;
|
|
|
480053d |
|
|
|
480053d |
- projection = Projector::create(Projector::PERSPECTIVE_PROJECTOR, Vec4i(0,0,800,600), 60);
|
|
|
480053d |
- glFrontFace(projection->needGlFrontFaceCW()?GL_CW:GL_CCW);
|
|
|
480053d |
|
|
|
480053d |
tone_converter = new ToneReproductor();
|
|
|
480053d |
atmosphere = new Atmosphere();
|
|
|
480053d |
@@ -135,6 +133,10 @@
|
|
|
480053d |
// Load core data and initialize with default values
|
|
|
480053d |
void StelCore::init(const InitParser& conf)
|
|
|
480053d |
{
|
|
|
480053d |
+ // do NOT do this in the constructor as there is no valid GLcontext there!
|
|
|
480053d |
+ projection = Projector::create(Projector::PERSPECTIVE_PROJECTOR, Vec4i(0,0,800,600), 60);
|
|
|
480053d |
+ glFrontFace(projection->needGlFrontFaceCW()?GL_CW:GL_CCW);
|
|
|
480053d |
+
|
|
|
480053d |
baseFontFile = getDataDir() + conf.get_str("gui", "base_font_name", "DejaVuSans.ttf");
|
|
|
480053d |
|
|
|
480053d |
// Video Section
|