4 * Copyright (c) 2000 - 2014 Samsung Electronics Co., Ltd. All rights reserved.
8 * Vitaliy Cherepanov <v.cherepanov@samsung.com>
10 * This library is free software; you can redistribute it and/or modify it under
11 * the terms of the GNU Lesser General Public License as published by the
12 * Free Software Foundation; either version 2.1 of the License, or (at your option)
15 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18 * License for more details.
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this library; if not, write to the Free Software Foundation, Inc., 51
22 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 * - Samsung RnD Institute Russia
29 //disable tizen redefines
33 #include "common_probe_init.h"
38 #include "da_gles20.h"
40 #define DECLARE(TYPE, FUNCNAME, ...) TYPE REAL_NAME(FUNCNAME)(__VA_ARGS__)
41 #define DECLARE_NOARGS(TYPE, FUNCNAME) TYPE REAL_NAME(FUNCNAME)()
43 #define REAL_NAME(func) __local_##func
44 #define BEFORE BEFORE_GL2_API
45 #define CALL_ORIG(func, ...) __gl_api->func(__VA_ARGS__)
48 #ifdef WRITE_MSG_CALLER_ADDR
49 #undef WRITE_MSG_CALLER_ADDR
52 #define WRITE_MSG_CALLER_ADDR __builtin_return_address(0)
56 * this include to make tizen open gl api functions
60 #include "da_gles20.inc"
66 #undef WRITE_MSG_CALLER_ADDR