Fix Mesa compile

BUG=skia:

Change-Id: Id532233537d18e6185a83681188aa73527b212a1
Reviewed-on: https://skia-review.googlesource.com/8842
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2017-02-22 08:48:10 -05:00
parent 58a1ea8d54
commit 12ab69540f

View File

@ -57,7 +57,8 @@ MesaGLContext::MesaGLContext(MesaGLContext* shareContext)
: fContext(static_cast<Context>(0))
, fImage(nullptr) {
GR_STATIC_ASSERT(sizeof(Context) == sizeof(OSMesaContext));
Context mesaShareContext = shareContext ? shareContext->fContext : nullptr;
OSMesaContext mesaShareContext = shareContext ? (OSMesaContext)(shareContext->fContext)
: nullptr;
/* Create an RGBA-mode context */
#if OSMESA_MAJOR_VERSION * 100 + OSMESA_MINOR_VERSION >= 305