mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
Check for NULL in intelSwapBuffers()
This commit is contained in:
parent
8c58a32360
commit
cd3c9febda
1 changed files with 6 additions and 1 deletions
|
|
@ -697,7 +697,12 @@ intelSwapBuffers(__DRIdrawablePrivate * dPriv)
|
|||
{
|
||||
if (dPriv->driContextPriv && dPriv->driContextPriv->driverPrivate) {
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
struct intel_context *intel = intel_context(ctx);
|
||||
struct intel_context *intel;
|
||||
|
||||
if (ctx == NULL)
|
||||
return;
|
||||
|
||||
intel = intel_context(ctx);
|
||||
|
||||
if (ctx->Visual.doubleBufferMode) {
|
||||
intelScreenPrivate *screen = intel->intelScreen;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue