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)
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)