i965: use _mesa_is_desktop_gl helper
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 24 Oct 2017 10:58:56 +0000 (11:58 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 16 Nov 2017 14:06:56 +0000 (14:06 +0000)
commitf8812931cf165760a81afb2cbc0520e3aca89f6b
treef208000e9c69873558c56c2bc431b7785ec4e3fc
parent6614804d1e9848ffd3402e4b23f4c57d39a59b7c
i965: use _mesa_is_desktop_gl helper

Use the helper over opencoding the check.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i965/brw_context.c