cube: fix scoping of some variables.
authorDave Airlie <airlied@redhat.com>
Fri, 12 Apr 2019 07:04:48 +0000 (17:04 +1000)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Tue, 23 Apr 2019 19:19:30 +0000 (13:19 -0600)
commit48a68f9a2689faab7feb8149684356ca29d09c42
tree38cca30d5538c8be0a900ae6a5628f12090d97d4
parenta0dab53f451d0c3a39f5d9b0fa062dbca00a4290
cube: fix scoping of some variables.

use_invalid: Using "present.pNext", which points to an out-of-scope variable "regions".

In theory these local vars are out of scope when they are used later.

Pointed out by coverity
cube/cube.c