OpenGL core profiles (and GL_NV_* extensions)

134 views
Skip to first unread message

Kyle Gretchev

unread,
Feb 25, 2013, 2:33:48 AM2/25/13
to skia-d...@googlegroups.com
Hey there,

Has anyone tried interfacing with a OpenGL context that was initialized using a core profile? I'm trying to use the 4.3 profile, and I've tried with 3.3 as well.

I have only tested this on nvidia hardware, and I'm seeing GrGLCreateNativeInterface fall apart when it tries to execute the GrGLHasExtensionFromString("GL_NV_*", extString) methods. (skia is checking for several nvidia specific GL extensions)

My guess is that since my card does support those extensions, skia attempts to use them but they are not recognized under any core profiles which causes the application to throw an error at run-time.


For the time being my application runs fine without defining a core profile, but it's something I would like to enforce if possible. I have temporarily commented out all references to nvidia extension initialization from my local skia repository which seems to have done the trick, except now I've come across some other GL run-time errors:

---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grglcontextinfo.cpp(56) :
                GetString(0x1F02)
---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grglutil.cpp(204) :
                GetString(0x8B8C)
---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grglcontextinfo.cpp(73) :
                GetString(0x1F03)
---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grgpugl.cpp(411) :
                Disable(0x0B10)
---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grgpugl.cpp(414) :
                Disable(0x0B42)
---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grgpugl.cpp(419) :
                Disable(0x0BF1)

Granted it's late and I have not had a chance to dive into these in detail. I'll see what I can do in the next couple of days, time permitting.

Brian Salomon

unread,
Feb 25, 2013, 8:45:19 AM2/25/13
to skia-d...@googlegroups.com
Hi Kyle,

I've been looking at this recently and should have a patch in this week that will allow core profiles to work.

Brian


--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/skia-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kyle Gretchev

unread,
Feb 25, 2013, 11:17:04 AM2/25/13
to skia-d...@googlegroups.com
Hi Brian,

Ah, perfect timing. Much appreciated!

Kyle Gretchev

unread,
Apr 4, 2013, 6:27:09 PM4/4/13
to skia-d...@googlegroups.com
I've been happily using skia with a defined core profile for a little while now (thanks for the fix!), however there is one error being reported at runtime that has no apparent effect on the application, but I thought I'd post it here:


---- glGetError 0x500(Invalid Enum) at
        d:\dev\lib\skia\src\gpu\gl\grglcontext.cpp(27) :
                GetString(0x1F02)
Reply all
Reply to author
Forward
0 new messages