Example #1
0
def _opengl_log(shader, function, caption):
    log = c_chars(MAX_LOG_SIZE)
    loglen = ctypes.c_int()
    function(shader, MAX_LOG_SIZE, ctypes.byref(loglen), log)
    LOGGER.info('%s: %s', caption, log.value)
Example #2
0
File: Shader.py Project: jmalm/pi3d
def _opengl_log(shader, function, caption):
  log = c_chars(MAX_LOG_SIZE)
  loglen = ctypes.c_int()
  function(shader, MAX_LOG_SIZE, ctypes.byref(loglen), ctypes.byref(log))
  LOGGER.info('%s: %s', caption, log.value)