Cleanup: compiler warnings
This commit is contained in:
@@ -118,7 +118,7 @@ static void drw_deferred_shader_compilation_exec(
|
|||||||
BLI_spin_lock(&comp->list_lock);
|
BLI_spin_lock(&comp->list_lock);
|
||||||
/* Pop tail because it will be less likely to lock the main thread
|
/* Pop tail because it will be less likely to lock the main thread
|
||||||
* if all GPUMaterials are to be freed (see DRW_deferred_shader_remove()). */
|
* if all GPUMaterials are to be freed (see DRW_deferred_shader_remove()). */
|
||||||
LinkData *link = (LinkData *)BLI_poptail(&comp->optimize_queue);
|
link = (LinkData *)BLI_poptail(&comp->optimize_queue);
|
||||||
GPUMaterial *optimize_mat = link ? (GPUMaterial *)link->data : NULL;
|
GPUMaterial *optimize_mat = link ? (GPUMaterial *)link->data : NULL;
|
||||||
if (optimize_mat) {
|
if (optimize_mat) {
|
||||||
/* Avoid another thread freeing the material during optimization. */
|
/* Avoid another thread freeing the material during optimization. */
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class GLBackend : public GPUBackend {
|
|||||||
GLTexture::samplers_update();
|
GLTexture::samplers_update();
|
||||||
};
|
};
|
||||||
|
|
||||||
Context *context_alloc(void *ghost_window, void *ghost_context) override
|
Context *context_alloc(void *ghost_window, void * /*ghost_context*/) override
|
||||||
{
|
{
|
||||||
return new GLContext(ghost_window, shared_orphan_list_);
|
return new GLContext(ghost_window, shared_orphan_list_);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user