Merge change 5035 into donut
* changes: add glTexParameteri() and fix glTexParameteriv()
This commit is contained in:
@@ -456,7 +456,7 @@ struct matrix_stack_t {
|
|||||||
void validate();
|
void validate();
|
||||||
matrixf_t& top() { return stack[depth]; }
|
matrixf_t& top() { return stack[depth]; }
|
||||||
const matrixf_t& top() const { return stack[depth]; }
|
const matrixf_t& top() const { return stack[depth]; }
|
||||||
const uint32_t top_ops() const { return ops[depth]; }
|
uint32_t top_ops() const { return ops[depth]; }
|
||||||
inline bool isRigidBody() const {
|
inline bool isRigidBody() const {
|
||||||
return !(ops[depth] & ~(OP_TRANSLATE|OP_UNIFORM_SCALE|OP_ROTATE));
|
return !(ops[depth] & ~(OP_TRANSLATE|OP_UNIFORM_SCALE|OP_ROTATE));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -900,7 +900,7 @@ void glTexParameteriv(
|
|||||||
memcpy(textureObject->crop_rect, params, 4*sizeof(GLint));
|
memcpy(textureObject->crop_rect, params, 4*sizeof(GLint));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ogles_error(c, GL_INVALID_ENUM);
|
texParameterx(target, pname, GLfixed(params[0]), c);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -919,6 +919,13 @@ void glTexParameterx(
|
|||||||
texParameterx(target, pname, param, c);
|
texParameterx(target, pname, param, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void glTexParameteri(
|
||||||
|
GLenum target, GLenum pname, GLint param)
|
||||||
|
{
|
||||||
|
ogles_context_t* c = ogles_context_t::get();
|
||||||
|
texParameterx(target, pname, GLfixed(param), c);
|
||||||
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
#if 0
|
#if 0
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|||||||
Reference in New Issue
Block a user