# lv_opengles_debug.h (/api/drivers/opengles/lv_opengles_debug_h)



<ApiSummary functions="2" macros="1" />

Functions [#functions]

<ApiMember kind="function" name="GLClearError" file="drivers/opengles/lv_opengles_debug.h" line="34" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_debug.h#L34">
  GLClearError [#glclearerror]

  ```c title=" " lineNumbers=1
  void GLClearError(void)
  ```
</ApiMember>

<ApiMember kind="function" name="GLLogCall" file="drivers/opengles/lv_opengles_debug.h" line="36" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_debug.h#L36">
  GLLogCall [#gllogcall]

  ```c title=" " lineNumbers=1
  void GLLogCall(const char *function, const char *file, int line)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name       | Type           |
  | ---------- | -------------- |
  | `function` | `const char *` |
  | `file`     | `const char *` |
  | `line`     | `int`          |
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="GL_CALL" file="drivers/opengles/lv_opengles_debug.h" line="45" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/opengles/lv_opengles_debug.h#L45">
  GL_CALL [#gl_call]

  ```c title=" " lineNumbers=1
  #define GL_CALL(x) \
      do { \
              GLClearError(); \
              x; \
              GLLogCall(#x, __FILE__, __LINE__); \
          } while(0)
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;]" includedBy="[&#x22;lv_opengl_shader_internal.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_kconfig.h&#x22;]" />
