PEPPER_ERROR("eglCreateContext() failed.\n");
goto error;
}
+
+ if (!eglMakeCurrent(gr->display, surface, surface, context))
+ {
+ PEPPER_ERROR("eglMakeCurrent() failed.\n");
+ goto error;
+ }
+
+ if (!setup_gl_extensions(gr))
+ goto error;
}
else
{
context = gr->context;
}
- if (!eglMakeCurrent(gr->display, surface, surface, context))
- {
- PEPPER_ERROR("eglMakeCurrent() failed.\n");
- goto error;
- }
-
- if (!setup_gl_extensions(gr))
- goto error;
-
target->base.renderer = renderer;
target->surface = surface;
target->config = config;