Skip to content

Commit

Permalink
Merge pull request capstone-engine#2 from floooh/glfix
Browse files Browse the repository at this point in the history
2 minor multiplatform fixes (GL renderer and NaCl)
  • Loading branch information
fungos committed Apr 17, 2015
2 parents 57a21fa + fdeb047 commit 57b8c45
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/tb/renderers/tb_renderer_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

#include <assert.h>
#include <stdio.h>
#include "tb_types.h"
#include "tb_renderer_gl.h"
#include "tb_bitmap_fragment.h"
#include "tb_system.h"

#if defined(TB_RENDERER_GLES_1) || defined(TB_RENDERER_GL)

namespace tb {

#ifdef TB_RUNTIME_DEBUG_INFO
Expand Down Expand Up @@ -162,3 +165,4 @@ void TBRendererGL::SetClipRect(const TBRect &rect)
}

}; // namespace tb
#endif // defined(TB_RENDERER_GLES_1) || defined(TB_RENDERER_GL)
6 changes: 4 additions & 2 deletions src/tb/renderers/tb_renderer_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#ifndef TB_RENDERER_GL_H
#define TB_RENDERER_GL_H

#include "renderers/tb_renderer_batcher.h"

#if defined(TB_RENDERER_GLES_1) || defined(TB_RENDERER_GL)
#ifdef TB_RENDERER_GLES_1
#include <EGL/egl.h>
#include <GLES/gl.h>
Expand All @@ -20,8 +23,6 @@
#include <GL/gl.h>
#endif

#include "renderers/tb_renderer_batcher.h"

namespace tb {

class TBRendererGL;
Expand Down Expand Up @@ -62,4 +63,5 @@ class TBRendererGL : public TBRendererBatcher

}; // namespace tb

#endif // defined(TB_RENDERER_GLES_1) || defined(TB_RENDERER_GL)
#endif // TB_RENDERER_GL_H
2 changes: 2 additions & 0 deletions src/tb/tb_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
#include "tb_core.h"
#include <assert.h>
#include <stdlib.h>
#if !defined(__native_client__)
#include <memory.h>
#endif

namespace tb {

Expand Down
2 changes: 2 additions & 0 deletions src/tb/tb_tempbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
#include "tb_tempbuffer.h"
#include <assert.h>
#include <stdlib.h>
#if !defined(__native_client__)
#include <memory.h>
#endif
#include <string.h>

namespace tb {
Expand Down

0 comments on commit 57b8c45

Please sign in to comment.