Sounds good.
On Mon, Apr 9, 2012 at 4:35 AM, Chiraag Juvekar
<[email protected]>wrote:
> Fix for the issue:
> I am now re-enabling the 2D Textures only if they were disabled now for
> drawing the the ellipses.
> This fixes both the atmosphere and the constellation line issues.
> Code to disable:
> bool texture2Denabled;
> // disable 2D textures for LineLoop mode */
> if(mode == LineLoop)
> {
> texture2Denabled = glIsEnabled(GL_TEXTURE_2D);
> glDisable(GL_TEXTURE_2D);
> }
> Code to re-enable:
> // re-enable 2D textures in case it was disabled */
> if(mode == LineLoop)
> {
> if(texture2Denabled) glEnable(GL_TEXTURE_2D);
> }
>
>
> On Mon, Apr 9, 2012 at 4:15 AM, Chiraag Juvekar <[email protected]
> > wrote:
>
>> Trial and error tells me that it is related to the following line in
>> StelPainter.cpp
>> glEnable(GL_TEXTURE_2D);
>>
>> This line was presumably added in response to the following bit of code
>> above it:
>> if(mode == LineLoop)
>> {
>> glDisable(GL_TEXTURE_2D);
>> }
>>
>> Any ides why the glEnable is required/why it causes the above issue?
>>
>> On Mon, Apr 9, 2012 at 3:32 AM, Reaves, Timothy <
>> [email protected]> wrote:
>>
>>> Not off the top of my head. Try doing a clean, see if that helps.
>>>
>>> On Sun, Apr 8, 2012 at 6:01 PM, Chiraag Juvekar <
>>> [email protected]> wrote:
>>>
>>>> Hey I merged Thomas' DSO branch with trunk and tried running it.
>>>> Most of the stuff works but I have a problem with drawing the
>>>> constellation lines.
>>>> It seems that they are getting rendered in a black color. Any hints on
>>>> what could be the issue?
>>>>
>>>> --
>>>> Chiraag
>>>>
>>>> You can't have everything in life,
>>>> In particular, the list of all lists that do not contain themselves.
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> For Developers, A Lot Can Happen In A Second.
>>>> Boundary is the first to Know...and Tell You.
>>>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>>>> http://p.sf.net/sfu/Boundary-d2dvs2
>>>> _______________________________________________
>>>> Stellarium-pubdevel mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> For Developers, A Lot Can Happen In A Second.
>>> Boundary is the first to Know...and Tell You.
>>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>>> http://p.sf.net/sfu/Boundary-d2dvs2
>>> _______________________________________________
>>> Stellarium-pubdevel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>>>
>>>
>>
>>
>> --
>> Chiraag
>>
>> You can't have everything in life,
>> In particular, the list of all lists that do not contain themselves.
>>
>>
>
>
> --
> Chiraag
>
> You can't have everything in life,
> In particular, the list of all lists that do not contain themselves.
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>
> _______________________________________________
> Stellarium-pubdevel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>
>
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel