Hi Robert,

 define the getModeUsage() as an empty set rather than let it default to
> the texture target as is the default with the osg::Texture subclasses.


It makes sense.

Cheers,
Wojtek




2014/1/24 Robert Osfield <robert.osfi...@gmail.com>

> HI Wojciech,
>
> Interesting observation.  If GL_TEXTURE_2D_MULTISAMPLE
> and GL_TEXTURE_2D_ARRAY shouldn't be used with modes it's would be
> appropriate for us to modify the Texture2DMultisample and Texture2DArray
> headers to define the getModeUsage() as an empty set rather than let it
> default to the texture target as is the default with the osg::Texture
> subclasses.
>
> Thoughts?
> Robert.
>
>
> On 24 January 2014 00:29, Wojciech Lewandowski 
> <w.p.lewandow...@gmail.com>wrote:
>
>> Hi Frank,
>>
>> I believe that GL_TEXTURE_2D_MULTISAMPLE should not applied as mode. Its
>> the same situation as with GL_TEXTURE_2D_ARRAY. These texture types are
>> only availalble to programmable pipeline.  Setup of Texture modes are
>> neccessary for  fixed pipeline. GL_TEXTURE_2D_ARRAY should be set only via
>> setTextureAttribute and setting setTextureMode( GL_TEXTURE_2D_ARRAY)
>> results in GL error. I believe GL_TEXTURE_2D_MULTISAMPLE is similar case...
>>
>> So going back to your original post I believe that
>> GL_TEXTURE_2D_MULTITEXTURE could be correctly applied by
>> setTextureAttribute.  And I suspect that it was applied with
>> setTextureAttributeAndModes even though mode was not actually set and
>> warning was displayed. Fact that code was not working as intended was
>> probably caused by some other factor.
>>
>> Just my 2 cents.
>>
>> Cheers,
>> Wojtek Lewandowski
>>
>>
>> 2014/1/24 Frank Sullivan <knarf.navil...@gmail.com>
>>
>>> Hi again Robert and others,
>>>
>>> I am now getting a glError that occurs in
>>> osg::State::applyModeOnTexUnit. It is trying to pass
>>> GL_TEXTURE_2D_MULTISAMPLE TO glEnable, resulting in an invalid enum error.
>>> I'm working to track down the source of it, but this is code that I'm
>>> less-familiar with so it might take a while. I'll keep you posted.
>>>
>>> Frank
>>>
>>> ------------------
>>> Read this topic online here:
>>> http://forum.openscenegraph.org/viewtopic.php?p=57976#57976
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users@lists.openscenegraph.org
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>>
>>
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to