blob: 160c31f7a5ca47c3f32706f2c702bc869b6b0ea9 [file] [log] [blame]
Geoff Lang2aaa7b42018-01-12 17:17:27 -05001//
2// Copyright (c) 2018 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7// validationES1.cpp: Validation functions for OpenGL ES 1.0 entry point parameters
8
9#include "libANGLE/validationES1.h"
10
11#include "common/debug.h"
Lingfeng Yang13b708f2018-03-21 12:14:10 -070012#include "libANGLE/Context.h"
13#include "libANGLE/ErrorStrings.h"
Lingfeng Yang038dd532018-03-29 17:31:52 -070014#include "libANGLE/validationES.h"
Lingfeng Yang13b708f2018-03-21 12:14:10 -070015
16#define ANGLE_VALIDATE_IS_GLES1(context) \
17 if (context->getClientMajorVersion() > 1) \
18 { \
19 ANGLE_VALIDATION_ERR(context, InvalidOperation(), GLES1Only); \
20 return false; \
21 }
22
23namespace
24{
25
26bool ValidateAlphaFuncCommon(gl::Context *context, gl::AlphaTestFunc func)
27{
28 switch (func)
29 {
30 case gl::AlphaTestFunc::AlwaysPass:
31 case gl::AlphaTestFunc::Equal:
32 case gl::AlphaTestFunc::Gequal:
33 case gl::AlphaTestFunc::Greater:
34 case gl::AlphaTestFunc::Lequal:
35 case gl::AlphaTestFunc::Less:
36 case gl::AlphaTestFunc::Never:
37 case gl::AlphaTestFunc::NotEqual:
38 return true;
39 default:
40 context->handleError(gl::InvalidEnum() << gl::kErrorEnumNotSupported);
41 return false;
42 }
43}
44
45} // anonymous namespace
Geoff Lang2aaa7b42018-01-12 17:17:27 -050046
47namespace gl
48{
49
Lingfeng Yang13b708f2018-03-21 12:14:10 -070050bool ValidateAlphaFunc(Context *context, AlphaTestFunc func, GLfloat ref)
Geoff Lang2aaa7b42018-01-12 17:17:27 -050051{
Lingfeng Yang13b708f2018-03-21 12:14:10 -070052 ANGLE_VALIDATE_IS_GLES1(context);
53 return ValidateAlphaFuncCommon(context, func);
Geoff Lang2aaa7b42018-01-12 17:17:27 -050054}
55
Lingfeng Yang13b708f2018-03-21 12:14:10 -070056bool ValidateAlphaFuncx(Context *context, AlphaTestFunc func, GLfixed ref)
Geoff Lang2aaa7b42018-01-12 17:17:27 -050057{
Lingfeng Yang13b708f2018-03-21 12:14:10 -070058 ANGLE_VALIDATE_IS_GLES1(context);
59 return ValidateAlphaFuncCommon(context, func);
Geoff Lang2aaa7b42018-01-12 17:17:27 -050060}
61
62bool ValidateClearColorx(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
63{
64 UNIMPLEMENTED();
65 return true;
66}
67
68bool ValidateClearDepthx(Context *context, GLfixed depth)
69{
70 UNIMPLEMENTED();
71 return true;
72}
73
74bool ValidateClientActiveTexture(Context *context, GLenum texture)
75{
Lingfeng Yang96310cd2018-03-28 11:56:28 -070076 ANGLE_VALIDATE_IS_GLES1(context);
Lingfeng Yang038dd532018-03-29 17:31:52 -070077 return ValidateMultitextureUnit(context, texture);
Geoff Lang2aaa7b42018-01-12 17:17:27 -050078}
79
80bool ValidateClipPlanef(Context *context, GLenum p, const GLfloat *eqn)
81{
82 UNIMPLEMENTED();
83 return true;
84}
85
86bool ValidateClipPlanex(Context *context, GLenum plane, const GLfixed *equation)
87{
88 UNIMPLEMENTED();
89 return true;
90}
91
92bool ValidateColor4f(Context *context, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
93{
Lingfeng Yanga43994c2018-03-29 07:21:41 -070094 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -050095 return true;
96}
97
98bool ValidateColor4ub(Context *context, GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
99{
Lingfeng Yanga43994c2018-03-29 07:21:41 -0700100 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500101 return true;
102}
103
104bool ValidateColor4x(Context *context, GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
105{
Lingfeng Yanga43994c2018-03-29 07:21:41 -0700106 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500107 return true;
108}
109
110bool ValidateColorPointer(Context *context,
111 GLint size,
112 GLenum type,
113 GLsizei stride,
114 const void *pointer)
115{
116 UNIMPLEMENTED();
117 return true;
118}
119
120bool ValidateCullFace(Context *context, GLenum mode)
121{
122 UNIMPLEMENTED();
123 return true;
124}
125
126bool ValidateDepthRangex(Context *context, GLfixed n, GLfixed f)
127{
128 UNIMPLEMENTED();
129 return true;
130}
131
132bool ValidateDisableClientState(Context *context, GLenum array)
133{
134 UNIMPLEMENTED();
135 return true;
136}
137
138bool ValidateEnableClientState(Context *context, GLenum array)
139{
140 UNIMPLEMENTED();
141 return true;
142}
143
144bool ValidateFogf(Context *context, GLenum pname, GLfloat param)
145{
146 UNIMPLEMENTED();
147 return true;
148}
149
150bool ValidateFogfv(Context *context, GLenum pname, const GLfloat *params)
151{
152 UNIMPLEMENTED();
153 return true;
154}
155
156bool ValidateFogx(Context *context, GLenum pname, GLfixed param)
157{
158 UNIMPLEMENTED();
159 return true;
160}
161
162bool ValidateFogxv(Context *context, GLenum pname, const GLfixed *param)
163{
164 UNIMPLEMENTED();
165 return true;
166}
167
168bool ValidateFrustumf(Context *context,
169 GLfloat l,
170 GLfloat r,
171 GLfloat b,
172 GLfloat t,
173 GLfloat n,
174 GLfloat f)
175{
176 UNIMPLEMENTED();
177 return true;
178}
179
180bool ValidateFrustumx(Context *context,
181 GLfixed l,
182 GLfixed r,
183 GLfixed b,
184 GLfixed t,
185 GLfixed n,
186 GLfixed f)
187{
188 UNIMPLEMENTED();
189 return true;
190}
191
192bool ValidateGetBufferParameteriv(Context *context, GLenum target, GLenum pname, GLint *params)
193{
194 UNIMPLEMENTED();
195 return true;
196}
197
198bool ValidateGetClipPlanef(Context *context, GLenum plane, GLfloat *equation)
199{
200 UNIMPLEMENTED();
201 return true;
202}
203
204bool ValidateGetClipPlanex(Context *context, GLenum plane, GLfixed *equation)
205{
206 UNIMPLEMENTED();
207 return true;
208}
209
210bool ValidateGetFixedv(Context *context, GLenum pname, GLfixed *params)
211{
212 UNIMPLEMENTED();
213 return true;
214}
215
216bool ValidateGetLightfv(Context *context, GLenum light, GLenum pname, GLfloat *params)
217{
218 UNIMPLEMENTED();
219 return true;
220}
221
222bool ValidateGetLightxv(Context *context, GLenum light, GLenum pname, GLfixed *params)
223{
224 UNIMPLEMENTED();
225 return true;
226}
227
228bool ValidateGetMaterialfv(Context *context, GLenum face, GLenum pname, GLfloat *params)
229{
230 UNIMPLEMENTED();
231 return true;
232}
233
234bool ValidateGetMaterialxv(Context *context, GLenum face, GLenum pname, GLfixed *params)
235{
236 UNIMPLEMENTED();
237 return true;
238}
239
240bool ValidateGetPointerv(Context *context, GLenum pname, void **params)
241{
242 UNIMPLEMENTED();
243 return true;
244}
245
246bool ValidateGetTexEnvfv(Context *context, GLenum target, GLenum pname, GLfloat *params)
247{
248 UNIMPLEMENTED();
249 return true;
250}
251
252bool ValidateGetTexEnviv(Context *context, GLenum target, GLenum pname, GLint *params)
253{
254 UNIMPLEMENTED();
255 return true;
256}
257
258bool ValidateGetTexEnvxv(Context *context, GLenum target, GLenum pname, GLfixed *params)
259{
260 UNIMPLEMENTED();
261 return true;
262}
263
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800264bool ValidateGetTexParameterxv(Context *context, TextureType target, GLenum pname, GLfixed *params)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500265{
266 UNIMPLEMENTED();
267 return true;
268}
269
270bool ValidateLightModelf(Context *context, GLenum pname, GLfloat param)
271{
272 UNIMPLEMENTED();
273 return true;
274}
275
276bool ValidateLightModelfv(Context *context, GLenum pname, const GLfloat *params)
277{
278 UNIMPLEMENTED();
279 return true;
280}
281
282bool ValidateLightModelx(Context *context, GLenum pname, GLfixed param)
283{
284 UNIMPLEMENTED();
285 return true;
286}
287
288bool ValidateLightModelxv(Context *context, GLenum pname, const GLfixed *param)
289{
290 UNIMPLEMENTED();
291 return true;
292}
293
294bool ValidateLightf(Context *context, GLenum light, GLenum pname, GLfloat param)
295{
296 UNIMPLEMENTED();
297 return true;
298}
299
300bool ValidateLightfv(Context *context, GLenum light, GLenum pname, const GLfloat *params)
301{
302 UNIMPLEMENTED();
303 return true;
304}
305
306bool ValidateLightx(Context *context, GLenum light, GLenum pname, GLfixed param)
307{
308 UNIMPLEMENTED();
309 return true;
310}
311
312bool ValidateLightxv(Context *context, GLenum light, GLenum pname, const GLfixed *params)
313{
314 UNIMPLEMENTED();
315 return true;
316}
317
318bool ValidateLineWidthx(Context *context, GLfixed width)
319{
320 UNIMPLEMENTED();
321 return true;
322}
323
324bool ValidateLoadIdentity(Context *context)
325{
Lingfeng Yang3a41af62018-04-09 07:28:56 -0700326 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500327 return true;
328}
329
330bool ValidateLoadMatrixf(Context *context, const GLfloat *m)
331{
Lingfeng Yang3a41af62018-04-09 07:28:56 -0700332 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500333 return true;
334}
335
336bool ValidateLoadMatrixx(Context *context, const GLfixed *m)
337{
Lingfeng Yang3a41af62018-04-09 07:28:56 -0700338 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500339 return true;
340}
341
342bool ValidateLogicOp(Context *context, GLenum opcode)
343{
344 UNIMPLEMENTED();
345 return true;
346}
347
348bool ValidateMaterialf(Context *context, GLenum face, GLenum pname, GLfloat param)
349{
350 UNIMPLEMENTED();
351 return true;
352}
353
354bool ValidateMaterialfv(Context *context, GLenum face, GLenum pname, const GLfloat *params)
355{
356 UNIMPLEMENTED();
357 return true;
358}
359
360bool ValidateMaterialx(Context *context, GLenum face, GLenum pname, GLfixed param)
361{
362 UNIMPLEMENTED();
363 return true;
364}
365
366bool ValidateMaterialxv(Context *context, GLenum face, GLenum pname, const GLfixed *param)
367{
368 UNIMPLEMENTED();
369 return true;
370}
371
Lingfeng Yang00af4632018-04-02 12:42:24 -0700372bool ValidateMatrixMode(Context *context, MatrixType mode)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500373{
Lingfeng Yangd2488ab2018-04-04 09:25:48 -0700374 ANGLE_VALIDATE_IS_GLES1(context);
375 switch (mode)
376 {
377 case MatrixType::Projection:
378 case MatrixType::Modelview:
379 case MatrixType::Texture:
380 return true;
381 default:
382 ANGLE_VALIDATION_ERR(context, InvalidEnum(), InvalidMatrixMode);
383 return false;
384 }
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500385}
386
387bool ValidateMultMatrixf(Context *context, const GLfloat *m)
388{
Lingfeng Yang568fc392018-04-09 07:57:23 -0700389 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500390 return true;
391}
392
393bool ValidateMultMatrixx(Context *context, const GLfixed *m)
394{
Lingfeng Yang568fc392018-04-09 07:57:23 -0700395 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500396 return true;
397}
398
399bool ValidateMultiTexCoord4f(Context *context,
400 GLenum target,
401 GLfloat s,
402 GLfloat t,
403 GLfloat r,
404 GLfloat q)
405{
Lingfeng Yang038dd532018-03-29 17:31:52 -0700406 ANGLE_VALIDATE_IS_GLES1(context);
407 return ValidateMultitextureUnit(context, target);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500408}
409
410bool ValidateMultiTexCoord4x(Context *context,
Lingfeng Yang038dd532018-03-29 17:31:52 -0700411 GLenum target,
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500412 GLfixed s,
413 GLfixed t,
414 GLfixed r,
415 GLfixed q)
416{
Lingfeng Yang038dd532018-03-29 17:31:52 -0700417 ANGLE_VALIDATE_IS_GLES1(context);
418 return ValidateMultitextureUnit(context, target);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500419}
420
421bool ValidateNormal3f(Context *context, GLfloat nx, GLfloat ny, GLfloat nz)
422{
Lingfeng Yang5a7e61b2018-03-29 16:50:32 -0700423 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500424 return true;
425}
426
427bool ValidateNormal3x(Context *context, GLfixed nx, GLfixed ny, GLfixed nz)
428{
Lingfeng Yang5a7e61b2018-03-29 16:50:32 -0700429 ANGLE_VALIDATE_IS_GLES1(context);
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500430 return true;
431}
432
433bool ValidateNormalPointer(Context *context, GLenum type, GLsizei stride, const void *pointer)
434{
435 UNIMPLEMENTED();
436 return true;
437}
438
439bool ValidateOrthof(Context *context,
440 GLfloat l,
441 GLfloat r,
442 GLfloat b,
443 GLfloat t,
444 GLfloat n,
445 GLfloat f)
446{
447 UNIMPLEMENTED();
448 return true;
449}
450
451bool ValidateOrthox(Context *context,
452 GLfixed l,
453 GLfixed r,
454 GLfixed b,
455 GLfixed t,
456 GLfixed n,
457 GLfixed f)
458{
459 UNIMPLEMENTED();
460 return true;
461}
462
463bool ValidatePointParameterf(Context *context, GLenum pname, GLfloat param)
464{
465 UNIMPLEMENTED();
466 return true;
467}
468
469bool ValidatePointParameterfv(Context *context, GLenum pname, const GLfloat *params)
470{
471 UNIMPLEMENTED();
472 return true;
473}
474
475bool ValidatePointParameterx(Context *context, GLenum pname, GLfixed param)
476{
477 UNIMPLEMENTED();
478 return true;
479}
480
481bool ValidatePointParameterxv(Context *context, GLenum pname, const GLfixed *params)
482{
483 UNIMPLEMENTED();
484 return true;
485}
486
487bool ValidatePointSize(Context *context, GLfloat size)
488{
489 UNIMPLEMENTED();
490 return true;
491}
492
493bool ValidatePointSizex(Context *context, GLfixed size)
494{
495 UNIMPLEMENTED();
496 return true;
497}
498
499bool ValidatePolygonOffsetx(Context *context, GLfixed factor, GLfixed units)
500{
501 UNIMPLEMENTED();
502 return true;
503}
504
505bool ValidatePopMatrix(Context *context)
506{
Lingfeng Yange547aac2018-04-05 09:39:20 -0700507 ANGLE_VALIDATE_IS_GLES1(context);
508 const auto &stack = context->getGLState().gles1().currentMatrixStack();
509 if (stack.size() == 1)
510 {
511 ANGLE_VALIDATION_ERR(context, StackUnderflow(), MatrixStackUnderflow);
512 return false;
513 }
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500514 return true;
515}
516
517bool ValidatePushMatrix(Context *context)
518{
Lingfeng Yange547aac2018-04-05 09:39:20 -0700519 ANGLE_VALIDATE_IS_GLES1(context);
520 const auto &stack = context->getGLState().gles1().currentMatrixStack();
521 if (stack.size() == stack.max_size())
522 {
523 ANGLE_VALIDATION_ERR(context, StackOverflow(), MatrixStackOverflow);
524 return false;
525 }
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500526 return true;
527}
528
529bool ValidateRotatef(Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
530{
531 UNIMPLEMENTED();
532 return true;
533}
534
535bool ValidateRotatex(Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
536{
537 UNIMPLEMENTED();
538 return true;
539}
540
541bool ValidateSampleCoveragex(Context *context, GLclampx value, GLboolean invert)
542{
543 UNIMPLEMENTED();
544 return true;
545}
546
547bool ValidateScalef(Context *context, GLfloat x, GLfloat y, GLfloat z)
548{
549 UNIMPLEMENTED();
550 return true;
551}
552
553bool ValidateScalex(Context *context, GLfixed x, GLfixed y, GLfixed z)
554{
555 UNIMPLEMENTED();
556 return true;
557}
558
559bool ValidateShadeModel(Context *context, GLenum mode)
560{
561 UNIMPLEMENTED();
562 return true;
563}
564
565bool ValidateTexCoordPointer(Context *context,
566 GLint size,
567 GLenum type,
568 GLsizei stride,
569 const void *pointer)
570{
571 UNIMPLEMENTED();
572 return true;
573}
574
575bool ValidateTexEnvf(Context *context, GLenum target, GLenum pname, GLfloat param)
576{
577 UNIMPLEMENTED();
578 return true;
579}
580
581bool ValidateTexEnvfv(Context *context, GLenum target, GLenum pname, const GLfloat *params)
582{
583 UNIMPLEMENTED();
584 return true;
585}
586
587bool ValidateTexEnvi(Context *context, GLenum target, GLenum pname, GLint param)
588{
589 UNIMPLEMENTED();
590 return true;
591}
592
593bool ValidateTexEnviv(Context *context, GLenum target, GLenum pname, const GLint *params)
594{
595 UNIMPLEMENTED();
596 return true;
597}
598
599bool ValidateTexEnvx(Context *context, GLenum target, GLenum pname, GLfixed param)
600{
601 UNIMPLEMENTED();
602 return true;
603}
604
605bool ValidateTexEnvxv(Context *context, GLenum target, GLenum pname, const GLfixed *params)
606{
607 UNIMPLEMENTED();
608 return true;
609}
610
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800611bool ValidateTexParameterx(Context *context, TextureType target, GLenum pname, GLfixed param)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500612{
613 UNIMPLEMENTED();
614 return true;
615}
616
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800617bool ValidateTexParameterxv(Context *context,
618 TextureType target,
619 GLenum pname,
620 const GLfixed *params)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500621{
622 UNIMPLEMENTED();
623 return true;
624}
625
626bool ValidateTranslatef(Context *context, GLfloat x, GLfloat y, GLfloat z)
627{
628 UNIMPLEMENTED();
629 return true;
630}
631
632bool ValidateTranslatex(Context *context, GLfixed x, GLfixed y, GLfixed z)
633{
634 UNIMPLEMENTED();
635 return true;
636}
637
638bool ValidateVertexPointer(Context *context,
639 GLint size,
640 GLenum type,
641 GLsizei stride,
642 const void *pointer)
643{
644 UNIMPLEMENTED();
645 return true;
646}
647
648bool ValidateDrawTexfOES(Context *context,
649 GLfloat x,
650 GLfloat y,
651 GLfloat z,
652 GLfloat width,
653 GLfloat height)
654{
655 UNIMPLEMENTED();
656 return true;
657}
658
659bool ValidateDrawTexfvOES(Context *context, const GLfloat *coords)
660{
661 UNIMPLEMENTED();
662 return true;
663}
664
665bool ValidateDrawTexiOES(Context *context, GLint x, GLint y, GLint z, GLint width, GLint height)
666{
667 UNIMPLEMENTED();
668 return true;
669}
670
671bool ValidateDrawTexivOES(Context *context, const GLint *coords)
672{
673 UNIMPLEMENTED();
674 return true;
675}
676
677bool ValidateDrawTexsOES(Context *context,
678 GLshort x,
679 GLshort y,
680 GLshort z,
681 GLshort width,
682 GLshort height)
683{
684 UNIMPLEMENTED();
685 return true;
686}
687
688bool ValidateDrawTexsvOES(Context *context, const GLshort *coords)
689{
690 UNIMPLEMENTED();
691 return true;
692}
693
694bool ValidateDrawTexxOES(Context *context,
695 GLfixed x,
696 GLfixed y,
697 GLfixed z,
698 GLfixed width,
699 GLfixed height)
700{
701 UNIMPLEMENTED();
702 return true;
703}
704
705bool ValidateDrawTexxvOES(Context *context, const GLfixed *coords)
706{
707 UNIMPLEMENTED();
708 return true;
709}
710
711bool ValidateCurrentPaletteMatrixOES(Context *context, GLuint matrixpaletteindex)
712{
713 UNIMPLEMENTED();
714 return true;
715}
716
717bool ValidateLoadPaletteFromModelViewMatrixOES(Context *context)
718{
719 UNIMPLEMENTED();
720 return true;
721}
722
723bool ValidateMatrixIndexPointerOES(Context *context,
724 GLint size,
725 GLenum type,
726 GLsizei stride,
727 const void *pointer)
728{
729 UNIMPLEMENTED();
730 return true;
731}
732
733bool ValidateWeightPointerOES(Context *context,
734 GLint size,
735 GLenum type,
736 GLsizei stride,
737 const void *pointer)
738{
739 UNIMPLEMENTED();
740 return true;
741}
742
743bool ValidatePointSizePointerOES(Context *context, GLenum type, GLsizei stride, const void *pointer)
744{
745 UNIMPLEMENTED();
746 return true;
747}
748
749bool ValidateQueryMatrixxOES(Context *context, GLfixed *mantissa, GLint *exponent)
750{
751 UNIMPLEMENTED();
752 return true;
753}
Lingfeng Yanga0648782018-03-12 14:45:25 -0700754
755bool ValidateGenFramebuffersOES(Context *context, GLsizei n, GLuint *framebuffers)
756{
757 UNIMPLEMENTED();
758 return true;
759}
760
761bool ValidateDeleteFramebuffersOES(Context *context, GLsizei n, const GLuint *framebuffers)
762{
763 UNIMPLEMENTED();
764 return true;
765}
766
767bool ValidateGenRenderbuffersOES(Context *context, GLsizei n, GLuint *renderbuffers)
768{
769 UNIMPLEMENTED();
770 return true;
771}
772
773bool ValidateDeleteRenderbuffersOES(Context *context, GLsizei n, const GLuint *renderbuffers)
774{
775 UNIMPLEMENTED();
776 return true;
777}
778
779bool ValidateBindFramebufferOES(Context *context, GLenum target, GLuint framebuffer)
780{
781 UNIMPLEMENTED();
782 return true;
783}
784
785bool ValidateBindRenderbufferOES(Context *context, GLenum target, GLuint renderbuffer)
786{
787 UNIMPLEMENTED();
788 return true;
789}
790
791bool ValidateCheckFramebufferStatusOES(Context *context, GLenum target)
792{
793 UNIMPLEMENTED();
794 return true;
795}
796
797bool ValidateFramebufferRenderbufferOES(Context *context,
798 GLenum target,
799 GLenum attachment,
800 GLenum rbtarget,
801 GLuint renderbuffer)
802{
803 UNIMPLEMENTED();
804 return true;
805}
806
807bool ValidateFramebufferTexture2DOES(Context *context,
808 GLenum target,
809 GLenum attachment,
810 TextureTarget textarget,
811 GLuint texture,
812 GLint level)
813{
814 UNIMPLEMENTED();
815 return true;
816}
817
818bool ValidateGenerateMipmapOES(Context *context, TextureType target)
819{
820 UNIMPLEMENTED();
821 return true;
822}
823
824bool ValidateGetFramebufferAttachmentParameterivOES(Context *context,
825 GLenum target,
826 GLenum attachment,
827 GLenum pname,
828 GLint *params)
829{
830 UNIMPLEMENTED();
831 return true;
832}
833
834bool ValidateGetRenderbufferParameterivOES(Context *context,
835 GLenum target,
836 GLenum pname,
837 GLint *params)
838{
839 UNIMPLEMENTED();
840 return true;
841}
842
843bool ValidateIsFramebufferOES(Context *context, GLuint framebuffer)
844{
845 UNIMPLEMENTED();
846 return true;
847}
848
849bool ValidateIsRenderbufferOES(Context *context, GLuint renderbuffer)
850{
851 UNIMPLEMENTED();
852 return true;
853}
854
855bool ValidateRenderbufferStorageOES(Context *context,
856 GLenum target,
857 GLint internalformat,
858 GLsizei width,
859 GLsizei height)
860{
861 UNIMPLEMENTED();
862 return true;
863}
864
865// GL_OES_texture_cube_map
866
867bool ValidateGetTexGenfvOES(Context *context, GLenum coord, GLenum pname, GLfloat *params)
868{
869 UNIMPLEMENTED();
870 return true;
871}
872
873bool ValidateGetTexGenivOES(Context *context, GLenum coord, GLenum pname, int *params)
874{
875 UNIMPLEMENTED();
876 return true;
877}
878
879bool ValidateGetTexGenxvOES(Context *context, GLenum coord, GLenum pname, GLfixed *params)
880{
881 UNIMPLEMENTED();
882 return true;
883}
884
885bool ValidateTexGenfvOES(Context *context, GLenum coord, GLenum pname, const GLfloat *params)
886{
887 UNIMPLEMENTED();
888 return true;
889}
890
891bool ValidateTexGenivOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
892{
893 UNIMPLEMENTED();
894 return true;
895}
896
897bool ValidateTexGenxvOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
898{
899 UNIMPLEMENTED();
900 return true;
901}
902
903bool ValidateTexGenfOES(Context *context, GLenum coord, GLenum pname, GLfloat param)
904{
905 UNIMPLEMENTED();
906 return true;
907}
908
909bool ValidateTexGeniOES(Context *context, GLenum coord, GLenum pname, GLint param)
910{
911 UNIMPLEMENTED();
912 return true;
913}
914
915bool ValidateTexGenxOES(Context *context, GLenum coord, GLenum pname, GLfixed param)
916{
917 UNIMPLEMENTED();
918 return true;
919}
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500920}