From 553c1f6ffe6930012524e55e8465128b049eb2cb Mon Sep 17 00:00:00 2001 From: Tobias Jakobi Date: Sat, 15 Aug 2015 19:29:48 +0200 Subject: hack --- src/gallium/state_trackers/clover/api/platform.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/state_trackers/clover/api/platform.cpp b/src/gallium/state_trackers/clover/api/platform.cpp index cf71593..65fb66c 100644 --- a/src/gallium/state_trackers/clover/api/platform.cpp +++ b/src/gallium/state_trackers/clover/api/platform.cpp @@ -25,10 +25,6 @@ using namespace clover; -namespace { - platform _clover_platform; -} - CLOVER_API cl_int clGetPlatformIDs(cl_uint num_entries, cl_platform_id *rd_platforms, cl_uint *rnum_platforms) { @@ -36,6 +32,8 @@ clGetPlatformIDs(cl_uint num_entries, cl_platform_id *rd_platforms, (!rnum_platforms && !rd_platforms)) return CL_INVALID_VALUE; + static platform _clover_platform; + if (rnum_platforms) *rnum_platforms = 1; if (rd_platforms) -- 2.4.6