mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-18 22:55:12 +00:00
more changes to make Rug work on Android
This commit is contained in:
@@ -332,6 +332,14 @@ void setGLProjection(int col) {
|
||||
stereo::set_projection(0);
|
||||
}
|
||||
|
||||
inline int next_p2 (int a )
|
||||
{
|
||||
int rval=1;
|
||||
// rval<<=1 Is A Prettier Way Of Writing rval*=2;
|
||||
while(rval<a) rval<<=1;
|
||||
return rval;
|
||||
}
|
||||
|
||||
#if CAP_GLFONT
|
||||
|
||||
struct glfont_t {
|
||||
@@ -345,14 +353,6 @@ struct glfont_t {
|
||||
|
||||
glfont_t *glfont[256];
|
||||
|
||||
inline int next_p2 (int a )
|
||||
{
|
||||
int rval=1;
|
||||
// rval<<=1 Is A Prettier Way Of Writing rval*=2;
|
||||
while(rval<a) rval<<=1;
|
||||
return rval;
|
||||
}
|
||||
|
||||
void glError(const char* GLcall, const char* file, const int line) {
|
||||
GLenum errCode = glGetError();
|
||||
if(errCode!=GL_NO_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user