Home
last modified time | relevance | path

Searched refs:SET_ERROR_IF (Results 1 – 4 of 4) sorted by relevance

/sdk/emulator/opengl/host/libs/Translator/GLES_V2/
DGLESv2Imp.cpp145 SET_ERROR_IF (!GLESv2Validate::textureEnum(texture,ctx->getMaxTexUnits()),GL_INVALID_ENUM); in glActiveTexture()
154 SET_ERROR_IF(globalProgramName==0, GL_INVALID_VALUE); in glAttachShader()
156 SET_ERROR_IF(globalShaderName==0, GL_INVALID_VALUE); in glAttachShader()
160 SET_ERROR_IF(!shaderData.Ptr() || !programData.Ptr() ,GL_INVALID_OPERATION); in glAttachShader()
161 SET_ERROR_IF(!(shaderData.Ptr()->getDataType() ==SHADER_DATA) || in glAttachShader()
166 SET_ERROR_IF((pData->getAttachedShader(shaderType)!=0), GL_INVALID_OPERATION); in glAttachShader()
174 SET_ERROR_IF(!GLESv2Validate::attribName(name),GL_INVALID_OPERATION); in glBindAttribLocation()
175 SET_ERROR_IF(!GLESv2Validate::attribIndex(index),GL_INVALID_VALUE); in glBindAttribLocation()
178 SET_ERROR_IF(globalProgramName==0, GL_INVALID_VALUE); in glBindAttribLocation()
180 SET_ERROR_IF(objData.Ptr()->getDataType()!=PROGRAM_DATA,GL_INVALID_OPERATION); in glBindAttribLocation()
[all …]
/sdk/emulator/opengl/host/libs/Translator/GLES_CM/
DGLEScmImp.cpp267 SET_ERROR_IF(!GLEScmValidate::textureEnum(texture,ctx->getMaxTexUnits()),GL_INVALID_ENUM); in glActiveTexture()
274 SET_ERROR_IF(!GLEScmValidate::alphaFunc(func),GL_INVALID_ENUM); in glAlphaFunc()
281 SET_ERROR_IF(!GLEScmValidate::alphaFunc(func),GL_INVALID_ENUM); in glAlphaFuncx()
288 SET_ERROR_IF(!GLEScmValidate::bufferTarget(target),GL_INVALID_ENUM); in glBindBuffer()
305 SET_ERROR_IF(!GLEScmValidate::textureTarget(target),GL_INVALID_ENUM) in glBindTexture()
323SET_ERROR_IF(ctx->GLTextureTargetToLocal(texData->target) != ctx->GLTextureTargetToLocal(target), … in glBindTexture()
333SET_ERROR_IF(!GLEScmValidate::blendSrc(sfactor) || !GLEScmValidate::blendDst(dfactor),GL_INVALID_E… in glBlendFunc()
339 SET_ERROR_IF(!GLEScmValidate::bufferTarget(target),GL_INVALID_ENUM); in glBufferData()
340 SET_ERROR_IF(!ctx->isBindedBuffer(target),GL_INVALID_OPERATION); in glBufferData()
346 SET_ERROR_IF(!ctx->isBindedBuffer(target),GL_INVALID_OPERATION); in glBufferSubData()
[all …]
/sdk/emulator/opengl/host/libs/Translator/GLcommon/
DTextureUtils.cpp60 SET_ERROR_IF((compressedSize > imageSize), GL_INVALID_VALUE); in doCompressedTexImage2D()
68 SET_ERROR_IF(res!=0, GL_INVALID_VALUE); in doCompressedTexImage2D()
85 SET_ERROR_IF(level > log2(ctx->getMaxTexSize()) || in doCompressedTexImage2D()
106 SET_ERROR_IF(1, GL_INVALID_ENUM); in doCompressedTexImage2D()
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/
DGLESmacros.h34 #define SET_ERROR_IF(condition,err) if((condition)) { \ macro