From f9bb8ab0aa24ad6dd5159ba7aec18e36f5f9e85f Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Wed, 22 Jan 2014 14:49:51 +0400 Subject: [PATCH] YaGL: GL_NV_read_buffer implemented Change-Id: I08f3cc49e118800881d879ccf518eca56393793f --- hw/yagl/yagl_apis/gles/yagl_gles_calls.c | 317 +++++++++--------- hw/yagl/yagl_apis/gles/yagl_host_gles_calls.c | 5 + hw/yagl/yagl_apis/gles/yagl_host_gles_calls.h | 1 + hw/yagl/yagl_drivers/gles_ogl/yagl_gles_ogl.c | 1 + hw/yagl/yagl_gles_driver.h | 1 + 5 files changed, 173 insertions(+), 152 deletions(-) diff --git a/hw/yagl/yagl_apis/gles/yagl_gles_calls.c b/hw/yagl/yagl_apis/gles/yagl_gles_calls.c index 1737f0371e..d27f314266 100644 --- a/hw/yagl/yagl_apis/gles/yagl_gles_calls.c +++ b/hw/yagl/yagl_apis/gles/yagl_gles_calls.c @@ -1269,7 +1269,19 @@ static void yagl_func_glDrawBuffers(struct yagl_transport *t) } /* - * glFramebufferTexture3D dispatcher. id = 65 + * glReadBuffer dispatcher. id = 65 + */ +static void yagl_func_glReadBuffer(struct yagl_transport *t) +{ + GLenum mode; + mode = yagl_transport_get_out_GLenum(t); + YAGL_LOG_FUNC_ENTER_SPLIT1(glReadBuffer, GLenum, mode); + (void)yagl_host_glReadBuffer(mode); + YAGL_LOG_FUNC_EXIT(NULL); +} + +/* + * glFramebufferTexture3D dispatcher. id = 66 */ static void yagl_func_glFramebufferTexture3D(struct yagl_transport *t) { @@ -1291,7 +1303,7 @@ static void yagl_func_glFramebufferTexture3D(struct yagl_transport *t) } /* - * glFramebufferTextureLayer dispatcher. id = 66 + * glFramebufferTextureLayer dispatcher. id = 67 */ static void yagl_func_glFramebufferTextureLayer(struct yagl_transport *t) { @@ -1311,7 +1323,7 @@ static void yagl_func_glFramebufferTextureLayer(struct yagl_transport *t) } /* - * glGenRenderbuffers dispatcher. id = 67 + * glGenRenderbuffers dispatcher. id = 68 */ static void yagl_func_glGenRenderbuffers(struct yagl_transport *t) { @@ -1324,7 +1336,7 @@ static void yagl_func_glGenRenderbuffers(struct yagl_transport *t) } /* - * glBindRenderbuffer dispatcher. id = 68 + * glBindRenderbuffer dispatcher. id = 69 */ static void yagl_func_glBindRenderbuffer(struct yagl_transport *t) { @@ -1338,7 +1350,7 @@ static void yagl_func_glBindRenderbuffer(struct yagl_transport *t) } /* - * glRenderbufferStorage dispatcher. id = 69 + * glRenderbufferStorage dispatcher. id = 70 */ static void yagl_func_glRenderbufferStorage(struct yagl_transport *t) { @@ -1356,7 +1368,7 @@ static void yagl_func_glRenderbufferStorage(struct yagl_transport *t) } /* - * glGetRenderbufferParameteriv dispatcher. id = 70 + * glGetRenderbufferParameteriv dispatcher. id = 71 */ static void yagl_func_glGetRenderbufferParameteriv(struct yagl_transport *t) { @@ -1372,7 +1384,7 @@ static void yagl_func_glGetRenderbufferParameteriv(struct yagl_transport *t) } /* - * glCreateProgram dispatcher. id = 71 + * glCreateProgram dispatcher. id = 72 */ static void yagl_func_glCreateProgram(struct yagl_transport *t) { @@ -1384,7 +1396,7 @@ static void yagl_func_glCreateProgram(struct yagl_transport *t) } /* - * glCreateShader dispatcher. id = 72 + * glCreateShader dispatcher. id = 73 */ static void yagl_func_glCreateShader(struct yagl_transport *t) { @@ -1398,7 +1410,7 @@ static void yagl_func_glCreateShader(struct yagl_transport *t) } /* - * glShaderSource dispatcher. id = 73 + * glShaderSource dispatcher. id = 74 */ static void yagl_func_glShaderSource(struct yagl_transport *t) { @@ -1413,7 +1425,7 @@ static void yagl_func_glShaderSource(struct yagl_transport *t) } /* - * glAttachShader dispatcher. id = 74 + * glAttachShader dispatcher. id = 75 */ static void yagl_func_glAttachShader(struct yagl_transport *t) { @@ -1427,7 +1439,7 @@ static void yagl_func_glAttachShader(struct yagl_transport *t) } /* - * glDetachShader dispatcher. id = 75 + * glDetachShader dispatcher. id = 76 */ static void yagl_func_glDetachShader(struct yagl_transport *t) { @@ -1441,7 +1453,7 @@ static void yagl_func_glDetachShader(struct yagl_transport *t) } /* - * glCompileShader dispatcher. id = 76 + * glCompileShader dispatcher. id = 77 */ static void yagl_func_glCompileShader(struct yagl_transport *t) { @@ -1453,7 +1465,7 @@ static void yagl_func_glCompileShader(struct yagl_transport *t) } /* - * glBindAttribLocation dispatcher. id = 77 + * glBindAttribLocation dispatcher. id = 78 */ static void yagl_func_glBindAttribLocation(struct yagl_transport *t) { @@ -1470,7 +1482,7 @@ static void yagl_func_glBindAttribLocation(struct yagl_transport *t) } /* - * glGetActiveAttrib dispatcher. id = 78 + * glGetActiveAttrib dispatcher. id = 79 */ static void yagl_func_glGetActiveAttrib(struct yagl_transport *t) { @@ -1493,7 +1505,7 @@ static void yagl_func_glGetActiveAttrib(struct yagl_transport *t) } /* - * glGetActiveUniform dispatcher. id = 79 + * glGetActiveUniform dispatcher. id = 80 */ static void yagl_func_glGetActiveUniform(struct yagl_transport *t) { @@ -1516,7 +1528,7 @@ static void yagl_func_glGetActiveUniform(struct yagl_transport *t) } /* - * glGetAttribLocation dispatcher. id = 80 + * glGetAttribLocation dispatcher. id = 81 */ static void yagl_func_glGetAttribLocation(struct yagl_transport *t) { @@ -1533,7 +1545,7 @@ static void yagl_func_glGetAttribLocation(struct yagl_transport *t) } /* - * glGetProgramiv dispatcher. id = 81 + * glGetProgramiv dispatcher. id = 82 */ static void yagl_func_glGetProgramiv(struct yagl_transport *t) { @@ -1549,7 +1561,7 @@ static void yagl_func_glGetProgramiv(struct yagl_transport *t) } /* - * glGetProgramInfoLog dispatcher. id = 82 + * glGetProgramInfoLog dispatcher. id = 83 */ static void yagl_func_glGetProgramInfoLog(struct yagl_transport *t) { @@ -1568,7 +1580,7 @@ static void yagl_func_glGetProgramInfoLog(struct yagl_transport *t) } /* - * glGetShaderiv dispatcher. id = 83 + * glGetShaderiv dispatcher. id = 84 */ static void yagl_func_glGetShaderiv(struct yagl_transport *t) { @@ -1584,7 +1596,7 @@ static void yagl_func_glGetShaderiv(struct yagl_transport *t) } /* - * glGetShaderInfoLog dispatcher. id = 84 + * glGetShaderInfoLog dispatcher. id = 85 */ static void yagl_func_glGetShaderInfoLog(struct yagl_transport *t) { @@ -1603,7 +1615,7 @@ static void yagl_func_glGetShaderInfoLog(struct yagl_transport *t) } /* - * glGetUniformfv dispatcher. id = 85 + * glGetUniformfv dispatcher. id = 86 */ static void yagl_func_glGetUniformfv(struct yagl_transport *t) { @@ -1624,7 +1636,7 @@ static void yagl_func_glGetUniformfv(struct yagl_transport *t) } /* - * glGetUniformiv dispatcher. id = 86 + * glGetUniformiv dispatcher. id = 87 */ static void yagl_func_glGetUniformiv(struct yagl_transport *t) { @@ -1645,7 +1657,7 @@ static void yagl_func_glGetUniformiv(struct yagl_transport *t) } /* - * glGetUniformLocation dispatcher. id = 87 + * glGetUniformLocation dispatcher. id = 88 */ static void yagl_func_glGetUniformLocation(struct yagl_transport *t) { @@ -1662,7 +1674,7 @@ static void yagl_func_glGetUniformLocation(struct yagl_transport *t) } /* - * glGetVertexAttribfv dispatcher. id = 88 + * glGetVertexAttribfv dispatcher. id = 89 */ static void yagl_func_glGetVertexAttribfv(struct yagl_transport *t) { @@ -1681,7 +1693,7 @@ static void yagl_func_glGetVertexAttribfv(struct yagl_transport *t) } /* - * glGetVertexAttribiv dispatcher. id = 89 + * glGetVertexAttribiv dispatcher. id = 90 */ static void yagl_func_glGetVertexAttribiv(struct yagl_transport *t) { @@ -1700,7 +1712,7 @@ static void yagl_func_glGetVertexAttribiv(struct yagl_transport *t) } /* - * glLinkProgram dispatcher. id = 90 + * glLinkProgram dispatcher. id = 91 */ static void yagl_func_glLinkProgram(struct yagl_transport *t) { @@ -1717,7 +1729,7 @@ static void yagl_func_glLinkProgram(struct yagl_transport *t) } /* - * glUniform1f dispatcher. id = 91 + * glUniform1f dispatcher. id = 92 */ static void yagl_func_glUniform1f(struct yagl_transport *t) { @@ -1733,7 +1745,7 @@ static void yagl_func_glUniform1f(struct yagl_transport *t) } /* - * glUniform1fv dispatcher. id = 92 + * glUniform1fv dispatcher. id = 93 */ static void yagl_func_glUniform1fv(struct yagl_transport *t) { @@ -1750,7 +1762,7 @@ static void yagl_func_glUniform1fv(struct yagl_transport *t) } /* - * glUniform1i dispatcher. id = 93 + * glUniform1i dispatcher. id = 94 */ static void yagl_func_glUniform1i(struct yagl_transport *t) { @@ -1766,7 +1778,7 @@ static void yagl_func_glUniform1i(struct yagl_transport *t) } /* - * glUniform1iv dispatcher. id = 94 + * glUniform1iv dispatcher. id = 95 */ static void yagl_func_glUniform1iv(struct yagl_transport *t) { @@ -1783,7 +1795,7 @@ static void yagl_func_glUniform1iv(struct yagl_transport *t) } /* - * glUniform2f dispatcher. id = 95 + * glUniform2f dispatcher. id = 96 */ static void yagl_func_glUniform2f(struct yagl_transport *t) { @@ -1801,7 +1813,7 @@ static void yagl_func_glUniform2f(struct yagl_transport *t) } /* - * glUniform2fv dispatcher. id = 96 + * glUniform2fv dispatcher. id = 97 */ static void yagl_func_glUniform2fv(struct yagl_transport *t) { @@ -1818,7 +1830,7 @@ static void yagl_func_glUniform2fv(struct yagl_transport *t) } /* - * glUniform2i dispatcher. id = 97 + * glUniform2i dispatcher. id = 98 */ static void yagl_func_glUniform2i(struct yagl_transport *t) { @@ -1836,7 +1848,7 @@ static void yagl_func_glUniform2i(struct yagl_transport *t) } /* - * glUniform2iv dispatcher. id = 98 + * glUniform2iv dispatcher. id = 99 */ static void yagl_func_glUniform2iv(struct yagl_transport *t) { @@ -1853,7 +1865,7 @@ static void yagl_func_glUniform2iv(struct yagl_transport *t) } /* - * glUniform3f dispatcher. id = 99 + * glUniform3f dispatcher. id = 100 */ static void yagl_func_glUniform3f(struct yagl_transport *t) { @@ -1873,7 +1885,7 @@ static void yagl_func_glUniform3f(struct yagl_transport *t) } /* - * glUniform3fv dispatcher. id = 100 + * glUniform3fv dispatcher. id = 101 */ static void yagl_func_glUniform3fv(struct yagl_transport *t) { @@ -1890,7 +1902,7 @@ static void yagl_func_glUniform3fv(struct yagl_transport *t) } /* - * glUniform3i dispatcher. id = 101 + * glUniform3i dispatcher. id = 102 */ static void yagl_func_glUniform3i(struct yagl_transport *t) { @@ -1910,7 +1922,7 @@ static void yagl_func_glUniform3i(struct yagl_transport *t) } /* - * glUniform3iv dispatcher. id = 102 + * glUniform3iv dispatcher. id = 103 */ static void yagl_func_glUniform3iv(struct yagl_transport *t) { @@ -1927,7 +1939,7 @@ static void yagl_func_glUniform3iv(struct yagl_transport *t) } /* - * glUniform4f dispatcher. id = 103 + * glUniform4f dispatcher. id = 104 */ static void yagl_func_glUniform4f(struct yagl_transport *t) { @@ -1949,7 +1961,7 @@ static void yagl_func_glUniform4f(struct yagl_transport *t) } /* - * glUniform4fv dispatcher. id = 104 + * glUniform4fv dispatcher. id = 105 */ static void yagl_func_glUniform4fv(struct yagl_transport *t) { @@ -1966,7 +1978,7 @@ static void yagl_func_glUniform4fv(struct yagl_transport *t) } /* - * glUniform4i dispatcher. id = 105 + * glUniform4i dispatcher. id = 106 */ static void yagl_func_glUniform4i(struct yagl_transport *t) { @@ -1988,7 +2000,7 @@ static void yagl_func_glUniform4i(struct yagl_transport *t) } /* - * glUniform4iv dispatcher. id = 106 + * glUniform4iv dispatcher. id = 107 */ static void yagl_func_glUniform4iv(struct yagl_transport *t) { @@ -2005,7 +2017,7 @@ static void yagl_func_glUniform4iv(struct yagl_transport *t) } /* - * glUniformMatrix2fv dispatcher. id = 107 + * glUniformMatrix2fv dispatcher. id = 108 */ static void yagl_func_glUniformMatrix2fv(struct yagl_transport *t) { @@ -2024,7 +2036,7 @@ static void yagl_func_glUniformMatrix2fv(struct yagl_transport *t) } /* - * glUniformMatrix3fv dispatcher. id = 108 + * glUniformMatrix3fv dispatcher. id = 109 */ static void yagl_func_glUniformMatrix3fv(struct yagl_transport *t) { @@ -2043,7 +2055,7 @@ static void yagl_func_glUniformMatrix3fv(struct yagl_transport *t) } /* - * glUniformMatrix4fv dispatcher. id = 109 + * glUniformMatrix4fv dispatcher. id = 110 */ static void yagl_func_glUniformMatrix4fv(struct yagl_transport *t) { @@ -2062,7 +2074,7 @@ static void yagl_func_glUniformMatrix4fv(struct yagl_transport *t) } /* - * glUseProgram dispatcher. id = 110 + * glUseProgram dispatcher. id = 111 */ static void yagl_func_glUseProgram(struct yagl_transport *t) { @@ -2074,7 +2086,7 @@ static void yagl_func_glUseProgram(struct yagl_transport *t) } /* - * glValidateProgram dispatcher. id = 111 + * glValidateProgram dispatcher. id = 112 */ static void yagl_func_glValidateProgram(struct yagl_transport *t) { @@ -2086,7 +2098,7 @@ static void yagl_func_glValidateProgram(struct yagl_transport *t) } /* - * glVertexAttrib1f dispatcher. id = 112 + * glVertexAttrib1f dispatcher. id = 113 */ static void yagl_func_glVertexAttrib1f(struct yagl_transport *t) { @@ -2100,7 +2112,7 @@ static void yagl_func_glVertexAttrib1f(struct yagl_transport *t) } /* - * glVertexAttrib1fv dispatcher. id = 113 + * glVertexAttrib1fv dispatcher. id = 114 */ static void yagl_func_glVertexAttrib1fv(struct yagl_transport *t) { @@ -2115,7 +2127,7 @@ static void yagl_func_glVertexAttrib1fv(struct yagl_transport *t) } /* - * glVertexAttrib2f dispatcher. id = 114 + * glVertexAttrib2f dispatcher. id = 115 */ static void yagl_func_glVertexAttrib2f(struct yagl_transport *t) { @@ -2131,7 +2143,7 @@ static void yagl_func_glVertexAttrib2f(struct yagl_transport *t) } /* - * glVertexAttrib2fv dispatcher. id = 115 + * glVertexAttrib2fv dispatcher. id = 116 */ static void yagl_func_glVertexAttrib2fv(struct yagl_transport *t) { @@ -2146,7 +2158,7 @@ static void yagl_func_glVertexAttrib2fv(struct yagl_transport *t) } /* - * glVertexAttrib3f dispatcher. id = 116 + * glVertexAttrib3f dispatcher. id = 117 */ static void yagl_func_glVertexAttrib3f(struct yagl_transport *t) { @@ -2164,7 +2176,7 @@ static void yagl_func_glVertexAttrib3f(struct yagl_transport *t) } /* - * glVertexAttrib3fv dispatcher. id = 117 + * glVertexAttrib3fv dispatcher. id = 118 */ static void yagl_func_glVertexAttrib3fv(struct yagl_transport *t) { @@ -2179,7 +2191,7 @@ static void yagl_func_glVertexAttrib3fv(struct yagl_transport *t) } /* - * glVertexAttrib4f dispatcher. id = 118 + * glVertexAttrib4f dispatcher. id = 119 */ static void yagl_func_glVertexAttrib4f(struct yagl_transport *t) { @@ -2199,7 +2211,7 @@ static void yagl_func_glVertexAttrib4f(struct yagl_transport *t) } /* - * glVertexAttrib4fv dispatcher. id = 119 + * glVertexAttrib4fv dispatcher. id = 120 */ static void yagl_func_glVertexAttrib4fv(struct yagl_transport *t) { @@ -2214,7 +2226,7 @@ static void yagl_func_glVertexAttrib4fv(struct yagl_transport *t) } /* - * glGetActiveUniformsiv dispatcher. id = 120 + * glGetActiveUniformsiv dispatcher. id = 121 */ static void yagl_func_glGetActiveUniformsiv(struct yagl_transport *t) { @@ -2234,7 +2246,7 @@ static void yagl_func_glGetActiveUniformsiv(struct yagl_transport *t) } /* - * glGetUniformIndices dispatcher. id = 121 + * glGetUniformIndices dispatcher. id = 122 */ static void yagl_func_glGetUniformIndices(struct yagl_transport *t) { @@ -2254,7 +2266,7 @@ static void yagl_func_glGetUniformIndices(struct yagl_transport *t) } /* - * glGetUniformBlockIndex dispatcher. id = 122 + * glGetUniformBlockIndex dispatcher. id = 123 */ static void yagl_func_glGetUniformBlockIndex(struct yagl_transport *t) { @@ -2271,7 +2283,7 @@ static void yagl_func_glGetUniformBlockIndex(struct yagl_transport *t) } /* - * glUniformBlockBinding dispatcher. id = 123 + * glUniformBlockBinding dispatcher. id = 124 */ static void yagl_func_glUniformBlockBinding(struct yagl_transport *t) { @@ -2287,7 +2299,7 @@ static void yagl_func_glUniformBlockBinding(struct yagl_transport *t) } /* - * glGetActiveUniformBlockName dispatcher. id = 124 + * glGetActiveUniformBlockName dispatcher. id = 125 */ static void yagl_func_glGetActiveUniformBlockName(struct yagl_transport *t) { @@ -2306,7 +2318,7 @@ static void yagl_func_glGetActiveUniformBlockName(struct yagl_transport *t) } /* - * glGetActiveUniformBlockiv dispatcher. id = 125 + * glGetActiveUniformBlockiv dispatcher. id = 126 */ static void yagl_func_glGetActiveUniformBlockiv(struct yagl_transport *t) { @@ -2327,7 +2339,7 @@ static void yagl_func_glGetActiveUniformBlockiv(struct yagl_transport *t) } /* - * glGetIntegerv dispatcher. id = 126 + * glGetIntegerv dispatcher. id = 127 */ static void yagl_func_glGetIntegerv(struct yagl_transport *t) { @@ -2344,7 +2356,7 @@ static void yagl_func_glGetIntegerv(struct yagl_transport *t) } /* - * glGetFloatv dispatcher. id = 127 + * glGetFloatv dispatcher. id = 128 */ static void yagl_func_glGetFloatv(struct yagl_transport *t) { @@ -2361,7 +2373,7 @@ static void yagl_func_glGetFloatv(struct yagl_transport *t) } /* - * glGetString dispatcher. id = 128 + * glGetString dispatcher. id = 129 */ static void yagl_func_glGetString(struct yagl_transport *t) { @@ -2378,7 +2390,7 @@ static void yagl_func_glGetString(struct yagl_transport *t) } /* - * glIsEnabled dispatcher. id = 129 + * glIsEnabled dispatcher. id = 130 */ static void yagl_func_glIsEnabled(struct yagl_transport *t) { @@ -2392,7 +2404,7 @@ static void yagl_func_glIsEnabled(struct yagl_transport *t) } /* - * glGenTransformFeedbacks dispatcher. id = 130 + * glGenTransformFeedbacks dispatcher. id = 131 */ static void yagl_func_glGenTransformFeedbacks(struct yagl_transport *t) { @@ -2405,7 +2417,7 @@ static void yagl_func_glGenTransformFeedbacks(struct yagl_transport *t) } /* - * glBindTransformFeedback dispatcher. id = 131 + * glBindTransformFeedback dispatcher. id = 132 */ static void yagl_func_glBindTransformFeedback(struct yagl_transport *t) { @@ -2419,7 +2431,7 @@ static void yagl_func_glBindTransformFeedback(struct yagl_transport *t) } /* - * glBeginTransformFeedback dispatcher. id = 132 + * glBeginTransformFeedback dispatcher. id = 133 */ static void yagl_func_glBeginTransformFeedback(struct yagl_transport *t) { @@ -2431,7 +2443,7 @@ static void yagl_func_glBeginTransformFeedback(struct yagl_transport *t) } /* - * glEndTransformFeedback dispatcher. id = 133 + * glEndTransformFeedback dispatcher. id = 134 */ static void yagl_func_glEndTransformFeedback(struct yagl_transport *t) { @@ -2441,7 +2453,7 @@ static void yagl_func_glEndTransformFeedback(struct yagl_transport *t) } /* - * glPauseTransformFeedback dispatcher. id = 134 + * glPauseTransformFeedback dispatcher. id = 135 */ static void yagl_func_glPauseTransformFeedback(struct yagl_transport *t) { @@ -2451,7 +2463,7 @@ static void yagl_func_glPauseTransformFeedback(struct yagl_transport *t) } /* - * glResumeTransformFeedback dispatcher. id = 135 + * glResumeTransformFeedback dispatcher. id = 136 */ static void yagl_func_glResumeTransformFeedback(struct yagl_transport *t) { @@ -2461,7 +2473,7 @@ static void yagl_func_glResumeTransformFeedback(struct yagl_transport *t) } /* - * glTransformFeedbackVaryings dispatcher. id = 136 + * glTransformFeedbackVaryings dispatcher. id = 137 */ static void yagl_func_glTransformFeedbackVaryings(struct yagl_transport *t) { @@ -2478,7 +2490,7 @@ static void yagl_func_glTransformFeedbackVaryings(struct yagl_transport *t) } /* - * glGetTransformFeedbackVaryings dispatcher. id = 137 + * glGetTransformFeedbackVaryings dispatcher. id = 138 */ static void yagl_func_glGetTransformFeedbackVaryings(struct yagl_transport *t) { @@ -2500,7 +2512,7 @@ static void yagl_func_glGetTransformFeedbackVaryings(struct yagl_transport *t) } /* - * glGenQueries dispatcher. id = 138 + * glGenQueries dispatcher. id = 139 */ static void yagl_func_glGenQueries(struct yagl_transport *t) { @@ -2513,7 +2525,7 @@ static void yagl_func_glGenQueries(struct yagl_transport *t) } /* - * glBeginQuery dispatcher. id = 139 + * glBeginQuery dispatcher. id = 140 */ static void yagl_func_glBeginQuery(struct yagl_transport *t) { @@ -2527,7 +2539,7 @@ static void yagl_func_glBeginQuery(struct yagl_transport *t) } /* - * glEndQuery dispatcher. id = 140 + * glEndQuery dispatcher. id = 141 */ static void yagl_func_glEndQuery(struct yagl_transport *t) { @@ -2539,7 +2551,7 @@ static void yagl_func_glEndQuery(struct yagl_transport *t) } /* - * glGetQueryObjectuiv dispatcher. id = 141 + * glGetQueryObjectuiv dispatcher. id = 142 */ static void yagl_func_glGetQueryObjectuiv(struct yagl_transport *t) { @@ -2555,7 +2567,7 @@ static void yagl_func_glGetQueryObjectuiv(struct yagl_transport *t) } /* - * glGenSamplers dispatcher. id = 142 + * glGenSamplers dispatcher. id = 143 */ static void yagl_func_glGenSamplers(struct yagl_transport *t) { @@ -2568,7 +2580,7 @@ static void yagl_func_glGenSamplers(struct yagl_transport *t) } /* - * glBindSampler dispatcher. id = 143 + * glBindSampler dispatcher. id = 144 */ static void yagl_func_glBindSampler(struct yagl_transport *t) { @@ -2582,7 +2594,7 @@ static void yagl_func_glBindSampler(struct yagl_transport *t) } /* - * glSamplerParameteri dispatcher. id = 144 + * glSamplerParameteri dispatcher. id = 145 */ static void yagl_func_glSamplerParameteri(struct yagl_transport *t) { @@ -2598,7 +2610,7 @@ static void yagl_func_glSamplerParameteri(struct yagl_transport *t) } /* - * glSamplerParameteriv dispatcher. id = 145 + * glSamplerParameteriv dispatcher. id = 146 */ static void yagl_func_glSamplerParameteriv(struct yagl_transport *t) { @@ -2615,7 +2627,7 @@ static void yagl_func_glSamplerParameteriv(struct yagl_transport *t) } /* - * glSamplerParameterf dispatcher. id = 146 + * glSamplerParameterf dispatcher. id = 147 */ static void yagl_func_glSamplerParameterf(struct yagl_transport *t) { @@ -2631,7 +2643,7 @@ static void yagl_func_glSamplerParameterf(struct yagl_transport *t) } /* - * glSamplerParameterfv dispatcher. id = 147 + * glSamplerParameterfv dispatcher. id = 148 */ static void yagl_func_glSamplerParameterfv(struct yagl_transport *t) { @@ -2648,7 +2660,7 @@ static void yagl_func_glSamplerParameterfv(struct yagl_transport *t) } /* - * glDeleteObjects dispatcher. id = 148 + * glDeleteObjects dispatcher. id = 149 */ static void yagl_func_glDeleteObjects(struct yagl_transport *t) { @@ -2661,7 +2673,7 @@ static void yagl_func_glDeleteObjects(struct yagl_transport *t) } /* - * glBlendEquation dispatcher. id = 149 + * glBlendEquation dispatcher. id = 150 */ static void yagl_func_glBlendEquation(struct yagl_transport *t) { @@ -2673,7 +2685,7 @@ static void yagl_func_glBlendEquation(struct yagl_transport *t) } /* - * glBlendEquationSeparate dispatcher. id = 150 + * glBlendEquationSeparate dispatcher. id = 151 */ static void yagl_func_glBlendEquationSeparate(struct yagl_transport *t) { @@ -2687,7 +2699,7 @@ static void yagl_func_glBlendEquationSeparate(struct yagl_transport *t) } /* - * glBlendFunc dispatcher. id = 151 + * glBlendFunc dispatcher. id = 152 */ static void yagl_func_glBlendFunc(struct yagl_transport *t) { @@ -2701,7 +2713,7 @@ static void yagl_func_glBlendFunc(struct yagl_transport *t) } /* - * glBlendFuncSeparate dispatcher. id = 152 + * glBlendFuncSeparate dispatcher. id = 153 */ static void yagl_func_glBlendFuncSeparate(struct yagl_transport *t) { @@ -2719,7 +2731,7 @@ static void yagl_func_glBlendFuncSeparate(struct yagl_transport *t) } /* - * glBlendColor dispatcher. id = 153 + * glBlendColor dispatcher. id = 154 */ static void yagl_func_glBlendColor(struct yagl_transport *t) { @@ -2737,7 +2749,7 @@ static void yagl_func_glBlendColor(struct yagl_transport *t) } /* - * glClear dispatcher. id = 154 + * glClear dispatcher. id = 155 */ static void yagl_func_glClear(struct yagl_transport *t) { @@ -2749,7 +2761,7 @@ static void yagl_func_glClear(struct yagl_transport *t) } /* - * glClearColor dispatcher. id = 155 + * glClearColor dispatcher. id = 156 */ static void yagl_func_glClearColor(struct yagl_transport *t) { @@ -2767,7 +2779,7 @@ static void yagl_func_glClearColor(struct yagl_transport *t) } /* - * glClearDepthf dispatcher. id = 156 + * glClearDepthf dispatcher. id = 157 */ static void yagl_func_glClearDepthf(struct yagl_transport *t) { @@ -2779,7 +2791,7 @@ static void yagl_func_glClearDepthf(struct yagl_transport *t) } /* - * glClearStencil dispatcher. id = 157 + * glClearStencil dispatcher. id = 158 */ static void yagl_func_glClearStencil(struct yagl_transport *t) { @@ -2791,7 +2803,7 @@ static void yagl_func_glClearStencil(struct yagl_transport *t) } /* - * glColorMask dispatcher. id = 158 + * glColorMask dispatcher. id = 159 */ static void yagl_func_glColorMask(struct yagl_transport *t) { @@ -2809,7 +2821,7 @@ static void yagl_func_glColorMask(struct yagl_transport *t) } /* - * glCullFace dispatcher. id = 159 + * glCullFace dispatcher. id = 160 */ static void yagl_func_glCullFace(struct yagl_transport *t) { @@ -2821,7 +2833,7 @@ static void yagl_func_glCullFace(struct yagl_transport *t) } /* - * glDepthFunc dispatcher. id = 160 + * glDepthFunc dispatcher. id = 161 */ static void yagl_func_glDepthFunc(struct yagl_transport *t) { @@ -2833,7 +2845,7 @@ static void yagl_func_glDepthFunc(struct yagl_transport *t) } /* - * glDepthMask dispatcher. id = 161 + * glDepthMask dispatcher. id = 162 */ static void yagl_func_glDepthMask(struct yagl_transport *t) { @@ -2845,7 +2857,7 @@ static void yagl_func_glDepthMask(struct yagl_transport *t) } /* - * glDepthRangef dispatcher. id = 162 + * glDepthRangef dispatcher. id = 163 */ static void yagl_func_glDepthRangef(struct yagl_transport *t) { @@ -2859,7 +2871,7 @@ static void yagl_func_glDepthRangef(struct yagl_transport *t) } /* - * glEnable dispatcher. id = 163 + * glEnable dispatcher. id = 164 */ static void yagl_func_glEnable(struct yagl_transport *t) { @@ -2871,7 +2883,7 @@ static void yagl_func_glEnable(struct yagl_transport *t) } /* - * glDisable dispatcher. id = 164 + * glDisable dispatcher. id = 165 */ static void yagl_func_glDisable(struct yagl_transport *t) { @@ -2883,7 +2895,7 @@ static void yagl_func_glDisable(struct yagl_transport *t) } /* - * glFlush dispatcher. id = 165 + * glFlush dispatcher. id = 166 */ static void yagl_func_glFlush(struct yagl_transport *t) { @@ -2893,7 +2905,7 @@ static void yagl_func_glFlush(struct yagl_transport *t) } /* - * glFrontFace dispatcher. id = 166 + * glFrontFace dispatcher. id = 167 */ static void yagl_func_glFrontFace(struct yagl_transport *t) { @@ -2905,7 +2917,7 @@ static void yagl_func_glFrontFace(struct yagl_transport *t) } /* - * glGenerateMipmap dispatcher. id = 167 + * glGenerateMipmap dispatcher. id = 168 */ static void yagl_func_glGenerateMipmap(struct yagl_transport *t) { @@ -2917,7 +2929,7 @@ static void yagl_func_glGenerateMipmap(struct yagl_transport *t) } /* - * glHint dispatcher. id = 168 + * glHint dispatcher. id = 169 */ static void yagl_func_glHint(struct yagl_transport *t) { @@ -2931,7 +2943,7 @@ static void yagl_func_glHint(struct yagl_transport *t) } /* - * glLineWidth dispatcher. id = 169 + * glLineWidth dispatcher. id = 170 */ static void yagl_func_glLineWidth(struct yagl_transport *t) { @@ -2943,7 +2955,7 @@ static void yagl_func_glLineWidth(struct yagl_transport *t) } /* - * glPixelStorei dispatcher. id = 170 + * glPixelStorei dispatcher. id = 171 */ static void yagl_func_glPixelStorei(struct yagl_transport *t) { @@ -2957,7 +2969,7 @@ static void yagl_func_glPixelStorei(struct yagl_transport *t) } /* - * glPolygonOffset dispatcher. id = 171 + * glPolygonOffset dispatcher. id = 172 */ static void yagl_func_glPolygonOffset(struct yagl_transport *t) { @@ -2971,7 +2983,7 @@ static void yagl_func_glPolygonOffset(struct yagl_transport *t) } /* - * glScissor dispatcher. id = 172 + * glScissor dispatcher. id = 173 */ static void yagl_func_glScissor(struct yagl_transport *t) { @@ -2989,7 +3001,7 @@ static void yagl_func_glScissor(struct yagl_transport *t) } /* - * glStencilFunc dispatcher. id = 173 + * glStencilFunc dispatcher. id = 174 */ static void yagl_func_glStencilFunc(struct yagl_transport *t) { @@ -3005,7 +3017,7 @@ static void yagl_func_glStencilFunc(struct yagl_transport *t) } /* - * glStencilMask dispatcher. id = 174 + * glStencilMask dispatcher. id = 175 */ static void yagl_func_glStencilMask(struct yagl_transport *t) { @@ -3017,7 +3029,7 @@ static void yagl_func_glStencilMask(struct yagl_transport *t) } /* - * glStencilOp dispatcher. id = 175 + * glStencilOp dispatcher. id = 176 */ static void yagl_func_glStencilOp(struct yagl_transport *t) { @@ -3033,7 +3045,7 @@ static void yagl_func_glStencilOp(struct yagl_transport *t) } /* - * glSampleCoverage dispatcher. id = 176 + * glSampleCoverage dispatcher. id = 177 */ static void yagl_func_glSampleCoverage(struct yagl_transport *t) { @@ -3047,7 +3059,7 @@ static void yagl_func_glSampleCoverage(struct yagl_transport *t) } /* - * glViewport dispatcher. id = 177 + * glViewport dispatcher. id = 178 */ static void yagl_func_glViewport(struct yagl_transport *t) { @@ -3065,7 +3077,7 @@ static void yagl_func_glViewport(struct yagl_transport *t) } /* - * glStencilFuncSeparate dispatcher. id = 178 + * glStencilFuncSeparate dispatcher. id = 179 */ static void yagl_func_glStencilFuncSeparate(struct yagl_transport *t) { @@ -3083,7 +3095,7 @@ static void yagl_func_glStencilFuncSeparate(struct yagl_transport *t) } /* - * glStencilMaskSeparate dispatcher. id = 179 + * glStencilMaskSeparate dispatcher. id = 180 */ static void yagl_func_glStencilMaskSeparate(struct yagl_transport *t) { @@ -3097,7 +3109,7 @@ static void yagl_func_glStencilMaskSeparate(struct yagl_transport *t) } /* - * glStencilOpSeparate dispatcher. id = 180 + * glStencilOpSeparate dispatcher. id = 181 */ static void yagl_func_glStencilOpSeparate(struct yagl_transport *t) { @@ -3115,7 +3127,7 @@ static void yagl_func_glStencilOpSeparate(struct yagl_transport *t) } /* - * glPointSize dispatcher. id = 181 + * glPointSize dispatcher. id = 182 */ static void yagl_func_glPointSize(struct yagl_transport *t) { @@ -3127,7 +3139,7 @@ static void yagl_func_glPointSize(struct yagl_transport *t) } /* - * glAlphaFunc dispatcher. id = 182 + * glAlphaFunc dispatcher. id = 183 */ static void yagl_func_glAlphaFunc(struct yagl_transport *t) { @@ -3141,7 +3153,7 @@ static void yagl_func_glAlphaFunc(struct yagl_transport *t) } /* - * glMatrixMode dispatcher. id = 183 + * glMatrixMode dispatcher. id = 184 */ static void yagl_func_glMatrixMode(struct yagl_transport *t) { @@ -3153,7 +3165,7 @@ static void yagl_func_glMatrixMode(struct yagl_transport *t) } /* - * glLoadIdentity dispatcher. id = 184 + * glLoadIdentity dispatcher. id = 185 */ static void yagl_func_glLoadIdentity(struct yagl_transport *t) { @@ -3163,7 +3175,7 @@ static void yagl_func_glLoadIdentity(struct yagl_transport *t) } /* - * glPopMatrix dispatcher. id = 185 + * glPopMatrix dispatcher. id = 186 */ static void yagl_func_glPopMatrix(struct yagl_transport *t) { @@ -3173,7 +3185,7 @@ static void yagl_func_glPopMatrix(struct yagl_transport *t) } /* - * glPushMatrix dispatcher. id = 186 + * glPushMatrix dispatcher. id = 187 */ static void yagl_func_glPushMatrix(struct yagl_transport *t) { @@ -3183,7 +3195,7 @@ static void yagl_func_glPushMatrix(struct yagl_transport *t) } /* - * glRotatef dispatcher. id = 187 + * glRotatef dispatcher. id = 188 */ static void yagl_func_glRotatef(struct yagl_transport *t) { @@ -3201,7 +3213,7 @@ static void yagl_func_glRotatef(struct yagl_transport *t) } /* - * glTranslatef dispatcher. id = 188 + * glTranslatef dispatcher. id = 189 */ static void yagl_func_glTranslatef(struct yagl_transport *t) { @@ -3217,7 +3229,7 @@ static void yagl_func_glTranslatef(struct yagl_transport *t) } /* - * glScalef dispatcher. id = 189 + * glScalef dispatcher. id = 190 */ static void yagl_func_glScalef(struct yagl_transport *t) { @@ -3233,7 +3245,7 @@ static void yagl_func_glScalef(struct yagl_transport *t) } /* - * glOrthof dispatcher. id = 190 + * glOrthof dispatcher. id = 191 */ static void yagl_func_glOrthof(struct yagl_transport *t) { @@ -3255,7 +3267,7 @@ static void yagl_func_glOrthof(struct yagl_transport *t) } /* - * glColor4f dispatcher. id = 191 + * glColor4f dispatcher. id = 192 */ static void yagl_func_glColor4f(struct yagl_transport *t) { @@ -3273,7 +3285,7 @@ static void yagl_func_glColor4f(struct yagl_transport *t) } /* - * glColor4ub dispatcher. id = 192 + * glColor4ub dispatcher. id = 193 */ static void yagl_func_glColor4ub(struct yagl_transport *t) { @@ -3291,7 +3303,7 @@ static void yagl_func_glColor4ub(struct yagl_transport *t) } /* - * glNormal3f dispatcher. id = 193 + * glNormal3f dispatcher. id = 194 */ static void yagl_func_glNormal3f(struct yagl_transport *t) { @@ -3307,7 +3319,7 @@ static void yagl_func_glNormal3f(struct yagl_transport *t) } /* - * glPointParameterf dispatcher. id = 194 + * glPointParameterf dispatcher. id = 195 */ static void yagl_func_glPointParameterf(struct yagl_transport *t) { @@ -3321,7 +3333,7 @@ static void yagl_func_glPointParameterf(struct yagl_transport *t) } /* - * glPointParameterfv dispatcher. id = 195 + * glPointParameterfv dispatcher. id = 196 */ static void yagl_func_glPointParameterfv(struct yagl_transport *t) { @@ -3336,7 +3348,7 @@ static void yagl_func_glPointParameterfv(struct yagl_transport *t) } /* - * glFogf dispatcher. id = 196 + * glFogf dispatcher. id = 197 */ static void yagl_func_glFogf(struct yagl_transport *t) { @@ -3350,7 +3362,7 @@ static void yagl_func_glFogf(struct yagl_transport *t) } /* - * glFogfv dispatcher. id = 197 + * glFogfv dispatcher. id = 198 */ static void yagl_func_glFogfv(struct yagl_transport *t) { @@ -3365,7 +3377,7 @@ static void yagl_func_glFogfv(struct yagl_transport *t) } /* - * glFrustumf dispatcher. id = 198 + * glFrustumf dispatcher. id = 199 */ static void yagl_func_glFrustumf(struct yagl_transport *t) { @@ -3387,7 +3399,7 @@ static void yagl_func_glFrustumf(struct yagl_transport *t) } /* - * glLightf dispatcher. id = 199 + * glLightf dispatcher. id = 200 */ static void yagl_func_glLightf(struct yagl_transport *t) { @@ -3403,7 +3415,7 @@ static void yagl_func_glLightf(struct yagl_transport *t) } /* - * glLightfv dispatcher. id = 200 + * glLightfv dispatcher. id = 201 */ static void yagl_func_glLightfv(struct yagl_transport *t) { @@ -3420,7 +3432,7 @@ static void yagl_func_glLightfv(struct yagl_transport *t) } /* - * glGetLightfv dispatcher. id = 201 + * glGetLightfv dispatcher. id = 202 */ static void yagl_func_glGetLightfv(struct yagl_transport *t) { @@ -3439,7 +3451,7 @@ static void yagl_func_glGetLightfv(struct yagl_transport *t) } /* - * glLightModelf dispatcher. id = 202 + * glLightModelf dispatcher. id = 203 */ static void yagl_func_glLightModelf(struct yagl_transport *t) { @@ -3453,7 +3465,7 @@ static void yagl_func_glLightModelf(struct yagl_transport *t) } /* - * glLightModelfv dispatcher. id = 203 + * glLightModelfv dispatcher. id = 204 */ static void yagl_func_glLightModelfv(struct yagl_transport *t) { @@ -3468,7 +3480,7 @@ static void yagl_func_glLightModelfv(struct yagl_transport *t) } /* - * glMaterialf dispatcher. id = 204 + * glMaterialf dispatcher. id = 205 */ static void yagl_func_glMaterialf(struct yagl_transport *t) { @@ -3484,7 +3496,7 @@ static void yagl_func_glMaterialf(struct yagl_transport *t) } /* - * glMaterialfv dispatcher. id = 205 + * glMaterialfv dispatcher. id = 206 */ static void yagl_func_glMaterialfv(struct yagl_transport *t) { @@ -3501,7 +3513,7 @@ static void yagl_func_glMaterialfv(struct yagl_transport *t) } /* - * glGetMaterialfv dispatcher. id = 206 + * glGetMaterialfv dispatcher. id = 207 */ static void yagl_func_glGetMaterialfv(struct yagl_transport *t) { @@ -3520,7 +3532,7 @@ static void yagl_func_glGetMaterialfv(struct yagl_transport *t) } /* - * glShadeModel dispatcher. id = 207 + * glShadeModel dispatcher. id = 208 */ static void yagl_func_glShadeModel(struct yagl_transport *t) { @@ -3532,7 +3544,7 @@ static void yagl_func_glShadeModel(struct yagl_transport *t) } /* - * glLogicOp dispatcher. id = 208 + * glLogicOp dispatcher. id = 209 */ static void yagl_func_glLogicOp(struct yagl_transport *t) { @@ -3544,7 +3556,7 @@ static void yagl_func_glLogicOp(struct yagl_transport *t) } /* - * glMultMatrixf dispatcher. id = 209 + * glMultMatrixf dispatcher. id = 210 */ static void yagl_func_glMultMatrixf(struct yagl_transport *t) { @@ -3557,7 +3569,7 @@ static void yagl_func_glMultMatrixf(struct yagl_transport *t) } /* - * glLoadMatrixf dispatcher. id = 210 + * glLoadMatrixf dispatcher. id = 211 */ static void yagl_func_glLoadMatrixf(struct yagl_transport *t) { @@ -3570,7 +3582,7 @@ static void yagl_func_glLoadMatrixf(struct yagl_transport *t) } /* - * glClipPlanef dispatcher. id = 211 + * glClipPlanef dispatcher. id = 212 */ static void yagl_func_glClipPlanef(struct yagl_transport *t) { @@ -3585,7 +3597,7 @@ static void yagl_func_glClipPlanef(struct yagl_transport *t) } /* - * glGetClipPlanef dispatcher. id = 212 + * glGetClipPlanef dispatcher. id = 213 */ static void yagl_func_glGetClipPlanef(struct yagl_transport *t) { @@ -3602,7 +3614,7 @@ static void yagl_func_glGetClipPlanef(struct yagl_transport *t) } /* - * glUpdateOffscreenImageYAGL dispatcher. id = 213 + * glUpdateOffscreenImageYAGL dispatcher. id = 214 */ static void yagl_func_glUpdateOffscreenImageYAGL(struct yagl_transport *t) { @@ -3623,7 +3635,7 @@ static void yagl_func_glUpdateOffscreenImageYAGL(struct yagl_transport *t) } /* - * glGenUniformLocationYAGL dispatcher. id = 214 + * glGenUniformLocationYAGL dispatcher. id = 215 */ static void yagl_func_glGenUniformLocationYAGL(struct yagl_transport *t) { @@ -3640,7 +3652,7 @@ static void yagl_func_glGenUniformLocationYAGL(struct yagl_transport *t) } /* - * glDeleteUniformLocationsYAGL dispatcher. id = 215 + * glDeleteUniformLocationsYAGL dispatcher. id = 216 */ static void yagl_func_glDeleteUniformLocationsYAGL(struct yagl_transport *t) { @@ -3652,7 +3664,7 @@ static void yagl_func_glDeleteUniformLocationsYAGL(struct yagl_transport *t) YAGL_LOG_FUNC_EXIT(NULL); } -const uint32_t yagl_gles_api_num_funcs = 215; +const uint32_t yagl_gles_api_num_funcs = 216; yagl_api_func yagl_gles_api_funcs[] = { &yagl_func_glDrawArrays, @@ -3719,6 +3731,7 @@ yagl_api_func yagl_gles_api_funcs[] = { &yagl_func_glFramebufferRenderbuffer, &yagl_func_glBlitFramebuffer, &yagl_func_glDrawBuffers, + &yagl_func_glReadBuffer, &yagl_func_glFramebufferTexture3D, &yagl_func_glFramebufferTextureLayer, &yagl_func_glGenRenderbuffers, diff --git a/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.c b/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.c index 51c22dfe4d..de69429756 100644 --- a/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.c +++ b/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.c @@ -1326,6 +1326,11 @@ void yagl_host_glDrawBuffers(const GLenum *bufs, int32_t bufs_count) gles_api_ts->driver->DrawBuffers(bufs_count, bufs); } +void yagl_host_glReadBuffer(GLenum mode) +{ + gles_api_ts->driver->ReadBuffer(mode); +} + void yagl_host_glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, diff --git a/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.h b/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.h index 332e205154..c5fb5350c9 100644 --- a/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.h +++ b/hw/yagl/yagl_apis/gles/yagl_host_gles_calls.h @@ -313,6 +313,7 @@ void yagl_host_glBlitFramebuffer(GLint srcX0, GLbitfield mask, GLenum filter); void yagl_host_glDrawBuffers(const GLenum *bufs, int32_t bufs_count); +void yagl_host_glReadBuffer(GLenum mode); void yagl_host_glFramebufferTexture3D(GLenum target, GLenum attachment, GLenum textarget, diff --git a/hw/yagl/yagl_drivers/gles_ogl/yagl_gles_ogl.c b/hw/yagl/yagl_drivers/gles_ogl/yagl_gles_ogl.c index f5ea8b5c33..4b7ff68503 100644 --- a/hw/yagl/yagl_drivers/gles_ogl/yagl_gles_ogl.c +++ b/hw/yagl/yagl_drivers/gles_ogl/yagl_gles_ogl.c @@ -106,6 +106,7 @@ struct yagl_gles_driver *yagl_gles_ogl_create(struct yagl_dyn_lib *dyn_lib, YAGL_GLES_OGL_GET_PROC(driver, DeleteFramebuffers, glDeleteFramebuffersEXT); YAGL_GLES_OGL_GET_PROC(driver, BlitFramebuffer, glBlitFramebufferEXT); YAGL_GLES_OGL_GET_PROC(driver, DrawBuffers, glDrawBuffers); + YAGL_GLES_OGL_GET_PROC(driver, ReadBuffer, glReadBuffer); YAGL_GLES_OGL_GET_PROC(driver, FramebufferTexture3D, glFramebufferTexture3DEXT); YAGL_GLES_OGL_GET_PROC(driver, GenRenderbuffers, glGenRenderbuffersEXT); YAGL_GLES_OGL_GET_PROC(driver, BindRenderbuffer, glBindRenderbufferEXT); diff --git a/hw/yagl/yagl_gles_driver.h b/hw/yagl/yagl_gles_driver.h index c68b6ffe48..748e25c0a8 100644 --- a/hw/yagl/yagl_gles_driver.h +++ b/hw/yagl/yagl_gles_driver.h @@ -157,6 +157,7 @@ struct yagl_gles_driver YAGL_GLES_DRIVER_FUNC2(DeleteFramebuffers, GLsizei, const GLuint*, n, framebuffers) YAGL_GLES_DRIVER_FUNC10(BlitFramebuffer, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) YAGL_GLES_DRIVER_FUNC2(DrawBuffers, GLsizei, const GLenum*, n, bufs) + YAGL_GLES_DRIVER_FUNC1(ReadBuffer, GLenum, mode) YAGL_GLES_DRIVER_FUNC6(FramebufferTexture3D, GLenum, GLenum, GLenum, GLuint, GLint, GLint, target, attachment, textarget, texture, level, zoffset); YAGL_GLES_DRIVER_FUNC2(GenRenderbuffers, GLsizei, GLuint*, n, renderbuffers) YAGL_GLES_DRIVER_FUNC2(BindRenderbuffer, GLenum, GLuint, target, renderbuffer) -- 2.34.1