Bug 1170855 - Part 5: Correctly load glGetInteger64v. r=jgilbert

Correctly detect support for ARB_sync via GLFeature.
This commit is contained in:
Dan Glastonbury 2015-06-05 17:13:41 +10:00
parent ae2b63809d
commit e415166dbf
3 changed files with 12 additions and 2 deletions

View File

@ -794,7 +794,7 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
}
}
if (IsExtensionSupported(ARB_sync)) {
if (IsSupported(GLFeature::sync)) {
SymLoadStruct syncSymbols[] = {
{ (PRFuncPtr*) &mSymbols.fFenceSync, { "FenceSync", nullptr } },
{ (PRFuncPtr*) &mSymbols.fIsSync, { "IsSync", nullptr } },
@ -807,7 +807,7 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
};
if (!LoadSymbols(&syncSymbols[0], trygl, prefix)) {
NS_ERROR("GL supports ARB_sync without supplying its functions.");
NS_ERROR("GL supports sync without supplying its functions.");
MarkExtensionUnsupported(ARB_sync);
ClearSymbols(syncSymbols);

View File

@ -122,6 +122,7 @@ enum class GLFeature {
sRGB_texture,
sampler_objects,
standard_derivatives,
sync,
texture_3D,
texture_3D_compressed,
texture_3D_copy,

View File

@ -529,6 +529,15 @@ static const FeatureInfo sFeatureInfoArr[] = {
GLContext::Extensions_End
}
},
{
"sync",
GLVersion::GL3_2,
GLESVersion::ES3,
GLContext::ARB_sync,
{
GLContext::Extensions_End
}
},
{
"texture_3D",
GLVersion::GL1_2,