equal
deleted
inserted
replaced
30 |
30 |
31 #include "GLESContext.h" |
31 #include "GLESContext.h" |
32 #include "GLESTexture.h" |
32 #include "GLESTexture.h" |
33 |
33 |
34 GLESContext::GLESContext(void* nativeContext) : |
34 GLESContext::GLESContext(void* nativeContext) : |
|
35 m_initialized(false), |
35 m_nativeContext(nativeContext), |
36 m_nativeContext(nativeContext), |
36 m_texCoordArray(NULL), |
37 m_texCoordArray(NULL) |
37 m_initialized(false) |
|
38 { |
38 { |
39 } |
39 } |
40 |
40 |
41 GLESContext::~GLESContext() |
41 GLESContext::~GLESContext() |
42 { |
42 { |
82 m_dgl.glGetIntegerv(GL_MAX_CLIP_PLANES, &maxClipPlanes); |
82 m_dgl.glGetIntegerv(GL_MAX_CLIP_PLANES, &maxClipPlanes); |
83 m_dgl.glGetIntegerv(GL_MAX_LIGHTS, &maxLights); |
83 m_dgl.glGetIntegerv(GL_MAX_LIGHTS, &maxLights); |
84 // The maximum number of texture units supported by the wrapper depends on the number |
84 // The maximum number of texture units supported by the wrapper depends on the number |
85 // of bits in the array state variable (four bits are used by vertex, normal, color |
85 // of bits in the array state variable (four bits are used by vertex, normal, color |
86 // and point size arrays). |
86 // and point size arrays). |
87 m_maxTextureUnits = GLES_MIN(maxTextureUnits, sizeof(m_enabledArrays) * 8 - 4); |
87 m_maxTextureUnits = GLES_MIN(maxTextureUnits, (int)(sizeof(m_enabledArrays) * 8 - 4)); |
88 m_maxClipPlanes = maxClipPlanes; |
88 m_maxClipPlanes = maxClipPlanes; |
89 m_maxLights = maxLights; |
89 m_maxLights = maxLights; |
90 |
90 |
91 int maxTextureSize; |
91 int maxTextureSize; |
92 m_dgl.glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); |
92 m_dgl.glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize); |