mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 22:08:26 +02:00
drisw: Move pointer dereferences to after NULL checks.
This commit is contained in:
parent
e0543599b5
commit
8c45677588
1 changed files with 4 additions and 2 deletions
|
|
@ -602,12 +602,14 @@ dri_make_current(__DRIcontext * cPriv,
|
|||
|
||||
if (cPriv) {
|
||||
struct dri_context *ctx = dri_context(cPriv);
|
||||
struct dri_drawable *draw = dri_drawable(driDrawPriv);
|
||||
struct dri_drawable *read = dri_drawable(driReadPriv);
|
||||
struct dri_drawable *draw;
|
||||
struct dri_drawable *read;
|
||||
|
||||
if (!driDrawPriv || !driReadPriv)
|
||||
return GL_FALSE;
|
||||
|
||||
draw = dri_drawable(driDrawPriv);
|
||||
read = dri_drawable(driReadPriv);
|
||||
mesaCtx = &ctx->Base;
|
||||
mesaDraw = &draw->Base;
|
||||
mesaRead = &read->Base;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue