mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1170855 - Part 5: Correctly load glGetInteger64v. r=jgilbert
Correctly detect support for ARB_sync via GLFeature.
This commit is contained in:
parent
ae2b63809d
commit
e415166dbf
@ -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);
|
||||
|
@ -122,6 +122,7 @@ enum class GLFeature {
|
||||
sRGB_texture,
|
||||
sampler_objects,
|
||||
standard_derivatives,
|
||||
sync,
|
||||
texture_3D,
|
||||
texture_3D_compressed,
|
||||
texture_3D_copy,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user