You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
358 B
20 lines
358 B
13 years ago
|
//
|
||
|
// basic.cpp
|
||
|
// J
|
||
|
//
|
||
|
// Created by Joshua Moerman on 8/28/11.
|
||
|
// Copyright 2011 Vadovas. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#include "basic.h"
|
||
|
|
||
|
namespace J {
|
||
|
void check_error(){
|
||
|
#if defined(DEBUG)
|
||
|
GLenum status = glGetError();
|
||
|
if(status != GL_NO_ERROR){
|
||
|
throw std::runtime_error("GL Error: " + std::to_string(status));
|
||
|
}
|
||
|
#endif
|
||
|
}
|
||
|
}
|