This causes an assert with libepoxy, but was wrong already regardless. Refactor logic to work as follows: * GPU_exit() deletes backend resources * Destroy UI GPU resources with the context active * Call GPU_backend_exit() after deleting the context Ref D15291 Differential Revision: https://developer.blender.org/D15465
25 lines
297 B
C++
25 lines
297 B
C++
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup gpu
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* gpu_backend.cc */
|
|
|
|
void gpu_backend_delete_resources(void);
|
|
|
|
/* gpu_pbvh.c */
|
|
|
|
void gpu_pbvh_init(void);
|
|
void gpu_pbvh_exit(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|