// GENERATED FILE - DO NOT EDIT. // Generated by generate_entry_points.py using data from gl.xml. // // Copyright 2020 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // entry_points_gl_2_autogen.cpp: // Defines the Desktop GL 2.x entry points. #include "libGLESv2/entry_points_gl_2_autogen.h" #include "common/gl_enum_utils.h" #include "libANGLE/Context.h" #include "libANGLE/Context.inl.h" #include "libANGLE/capture/capture_gl_2_autogen.h" #include "libANGLE/context_private_call_gl_autogen.h" #include "libANGLE/context_private_call_gles_autogen.h" #include "libANGLE/entry_points_utils.h" #include "libANGLE/validationEGL.h" #include "libANGLE/validationES.h" #include "libANGLE/validationES1.h" #include "libANGLE/validationES2.h" #include "libANGLE/validationES3.h" #include "libANGLE/validationES31.h" #include "libANGLE/validationES32.h" #include "libANGLE/validationESEXT.h" #include "libANGLE/validationGL2_autogen.h" #include "libGLESv2/global_state.h" using namespace gl; extern "C" { // GL 2.0 void GL_APIENTRY GL_GetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params) { Context *context = GetValidGlobalContext(); EVENT(context, GLGetVertexAttribdv, "context = %d, index = %u, pname = %s, params = 0x%016" PRIxPTR "", CID(context), index, GLenumToString(BigGLEnum::AllEnums, pname), (uintptr_t)params); if (context) { SCOPED_SHARE_CONTEXT_LOCK(context); bool isCallValid = (context->skipValidation() || ValidateGetVertexAttribdv(context, angle::EntryPoint::GLGetVertexAttribdv, index, pname, params)); if (isCallValid) { context->getVertexAttribdv(index, pname, params); } ANGLE_CAPTURE_GL(GetVertexAttribdv, isCallValid, context, index, pname, params); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib1d(GLuint index, GLdouble x) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib1d, "context = %d, index = %u, x = %f", CID(context), index, x); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib1d(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib1d, index, x)); if (isCallValid) { ContextPrivateVertexAttrib1d(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x); } ANGLE_CAPTURE_GL(VertexAttrib1d, isCallValid, context, index, x); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib1dv(GLuint index, const GLdouble *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib1dv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib1dv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib1dv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib1dv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib1dv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib1s(GLuint index, GLshort x) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib1s, "context = %d, index = %u, x = %d", CID(context), index, x); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib1s(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib1s, index, x)); if (isCallValid) { ContextPrivateVertexAttrib1s(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x); } ANGLE_CAPTURE_GL(VertexAttrib1s, isCallValid, context, index, x); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib1sv(GLuint index, const GLshort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib1sv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib1sv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib1sv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib1sv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib1sv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib2d(GLuint index, GLdouble x, GLdouble y) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib2d, "context = %d, index = %u, x = %f, y = %f", CID(context), index, x, y); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib2d(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib2d, index, x, y)); if (isCallValid) { ContextPrivateVertexAttrib2d(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y); } ANGLE_CAPTURE_GL(VertexAttrib2d, isCallValid, context, index, x, y); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib2dv(GLuint index, const GLdouble *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib2dv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib2dv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib2dv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib2dv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib2dv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib2s(GLuint index, GLshort x, GLshort y) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib2s, "context = %d, index = %u, x = %d, y = %d", CID(context), index, x, y); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib2s(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib2s, index, x, y)); if (isCallValid) { ContextPrivateVertexAttrib2s(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y); } ANGLE_CAPTURE_GL(VertexAttrib2s, isCallValid, context, index, x, y); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib2sv(GLuint index, const GLshort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib2sv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib2sv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib2sv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib2sv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib2sv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib3d, "context = %d, index = %u, x = %f, y = %f, z = %f", CID(context), index, x, y, z); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib3d(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib3d, index, x, y, z)); if (isCallValid) { ContextPrivateVertexAttrib3d(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y, z); } ANGLE_CAPTURE_GL(VertexAttrib3d, isCallValid, context, index, x, y, z); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib3dv(GLuint index, const GLdouble *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib3dv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib3dv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib3dv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib3dv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib3dv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib3s, "context = %d, index = %u, x = %d, y = %d, z = %d", CID(context), index, x, y, z); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib3s(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib3s, index, x, y, z)); if (isCallValid) { ContextPrivateVertexAttrib3s(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y, z); } ANGLE_CAPTURE_GL(VertexAttrib3s, isCallValid, context, index, x, y, z); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib3sv(GLuint index, const GLshort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib3sv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib3sv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib3sv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib3sv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib3sv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nbv(GLuint index, const GLbyte *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nbv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nbv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nbv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Nbv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Nbv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Niv(GLuint index, const GLint *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Niv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Niv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Niv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Niv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Niv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nsv(GLuint index, const GLshort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nsv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nsv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nsv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Nsv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Nsv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nub, "context = %d, index = %u, x = %d, y = %d, z = %d, w = %d", CID(context), index, x, y, z, w); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nub(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nub, index, x, y, z, w)); if (isCallValid) { ContextPrivateVertexAttrib4Nub(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y, z, w); } ANGLE_CAPTURE_GL(VertexAttrib4Nub, isCallValid, context, index, x, y, z, w); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nubv(GLuint index, const GLubyte *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nubv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nubv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nubv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Nubv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Nubv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nuiv(GLuint index, const GLuint *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nuiv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nuiv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nuiv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Nuiv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Nuiv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4Nusv(GLuint index, const GLushort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4Nusv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4Nusv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4Nusv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4Nusv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4Nusv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4bv(GLuint index, const GLbyte *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4bv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4bv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4bv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4bv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4bv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4d, "context = %d, index = %u, x = %f, y = %f, z = %f, w = %f", CID(context), index, x, y, z, w); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4d(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4d, index, x, y, z, w)); if (isCallValid) { ContextPrivateVertexAttrib4d(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y, z, w); } ANGLE_CAPTURE_GL(VertexAttrib4d, isCallValid, context, index, x, y, z, w); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4dv(GLuint index, const GLdouble *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4dv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4dv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4dv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4dv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4dv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4iv(GLuint index, const GLint *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4iv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4iv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4iv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4iv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4iv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4s, "context = %d, index = %u, x = %d, y = %d, z = %d, w = %d", CID(context), index, x, y, z, w); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4s(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4s, index, x, y, z, w)); if (isCallValid) { ContextPrivateVertexAttrib4s(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, x, y, z, w); } ANGLE_CAPTURE_GL(VertexAttrib4s, isCallValid, context, index, x, y, z, w); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4sv(GLuint index, const GLshort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4sv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4sv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4sv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4sv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4sv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4ubv(GLuint index, const GLubyte *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4ubv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4ubv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4ubv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4ubv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4ubv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4uiv(GLuint index, const GLuint *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4uiv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4uiv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4uiv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4uiv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4uiv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } void GL_APIENTRY GL_VertexAttrib4usv(GLuint index, const GLushort *v) { Context *context = GetValidGlobalContext(); EVENT(context, GLVertexAttrib4usv, "context = %d, index = %u, v = 0x%016" PRIxPTR "", CID(context), index, (uintptr_t)v); if (context) { bool isCallValid = (context->skipValidation() || ValidateVertexAttrib4usv(context->getPrivateState(), context->getMutableErrorSetForValidation(), angle::EntryPoint::GLVertexAttrib4usv, index, v)); if (isCallValid) { ContextPrivateVertexAttrib4usv(context->getMutablePrivateState(), context->getMutablePrivateStateCache(), index, v); } ANGLE_CAPTURE_GL(VertexAttrib4usv, isCallValid, context, index, v); } else { GenerateContextLostErrorOnCurrentGlobalContext(); } ASSERT(!egl::Display::GetCurrentThreadUnlockedTailCall()->any()); } // GL 2.1 } // extern "C"