Skip to content

Commit dfbcee6

Browse files
committed
fix build
Change-Id: Ibdc45f1794e7ef60dc1ca0ff85c5cc4dff84c3fa
1 parent 0589e58 commit dfbcee6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libs/rs/driver/rsdGL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,9 @@ bool rsdGLInit(const Context *rsc) {
340340

341341
dc->gl.gl.OES_texture_npot = NULL != strstr((const char *)dc->gl.gl.extensions,
342342
"GL_OES_texture_npot");
343-
dc->gl.gl.GL_IMG_texture_npot = NULL != strstr((const char *)dc->gl.gl.extensions,
343+
dc->gl.gl.IMG_texture_npot = NULL != strstr((const char *)dc->gl.gl.extensions,
344344
"GL_IMG_texture_npot");
345-
dc->gl.gl.GL_NV_texture_npot_2D_mipmap = NULL != strstr((const char *)dc->gl.gl.extensions,
345+
dc->gl.gl.NV_texture_npot_2D_mipmap = NULL != strstr((const char *)dc->gl.gl.extensions,
346346
"GL_NV_texture_npot_2D_mipmap");
347347
dc->gl.gl.EXT_texture_max_aniso = 1.0f;
348348
bool hasAniso = NULL != strstr((const char *)dc->gl.gl.extensions,

libs/rs/driver/rsdGL.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ typedef struct RsdGLRec {
6161
int32_t maxVertexTextureUnits;
6262

6363
bool OES_texture_npot;
64-
bool GL_IMG_texture_npot;
65-
bool GL_NV_texture_npot_2D_mipmap;
64+
bool IMG_texture_npot;
65+
bool NV_texture_npot_2D_mipmap;
6666
float EXT_texture_max_aniso;
6767
} gl;
6868

libs/rs/driver/rsdShader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ void RsdShader::setupSampler(const Context *rsc, const Sampler *s, const Allocat
349349

350350
if (!dc->gl.gl.OES_texture_npot && tex->getType()->getIsNp2()) {
351351
if (tex->getHasGraphicsMipmaps() &&
352-
(dc->gl.gl.GL_NV_texture_npot_2D_mipmap || dc->gl.gl.GL_IMG_texture_npot)) {
353-
if (dc->gl.gl.GL_NV_texture_npot_2D_mipmap) {
352+
(dc->gl.gl.NV_texture_npot_2D_mipmap || dc->gl.gl.IMG_texture_npot)) {
353+
if (dc->gl.gl.NV_texture_npot_2D_mipmap) {
354354
RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_MIN_FILTER,
355355
trans[s->mHal.state.minFilter]);
356356
} else {

0 commit comments

Comments
 (0)