2015-02-16 21:19:12 +01:00
|
|
|
/*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*
|
|
|
|
|
* The Original Code is Copyright (C) 2005 Blender Foundation.
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup gpu
|
2015-02-16 21:19:12 +01:00
|
|
|
*/
|
|
|
|
|
|
2017-05-20 14:01:03 +10:00
|
|
|
#include "BLI_compiler_attrs.h"
|
2015-02-16 21:19:12 +01:00
|
|
|
#include "BLI_sys_types.h"
|
2016-08-16 17:14:42 -04:00
|
|
|
#include "BLI_system.h"
|
2020-03-19 09:33:03 +01:00
|
|
|
#include "BLI_utildefines.h"
|
2015-02-16 21:19:12 +01:00
|
|
|
|
|
|
|
|
#include "BKE_global.h"
|
|
|
|
|
|
|
|
|
|
#include "GPU_debug.h"
|
2020-03-19 09:33:03 +01:00
|
|
|
#include "GPU_glew.h"
|
2015-02-16 21:19:12 +01:00
|
|
|
#include "intern/gpu_private.h"
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2015-02-23 18:09:28 +05:00
|
|
|
#include <stdlib.h>
|
2015-02-16 21:19:12 +01:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
|
|
void GPU_print_error_debug(const char *str)
|
|
|
|
|
{
|
2019-04-22 09:32:37 +10:00
|
|
|
if (G.debug & G_DEBUG) {
|
2019-04-17 06:17:24 +02:00
|
|
|
fprintf(stderr, "GPU: %s\n", str);
|
2019-04-22 09:32:37 +10:00
|
|
|
}
|
2015-02-16 21:19:12 +01:00
|
|
|
}
|