blob: d8f8c85d75036021788e0b0e8225ed3dc7be06b7 [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{
326 UNIMPLEMENTED();
327 return true;
328}
329
330bool ValidateLoadMatrixf(Context *context, const GLfloat *m)
331{
332 UNIMPLEMENTED();
333 return true;
334}
335
336bool ValidateLoadMatrixx(Context *context, const GLfixed *m)
337{
338 UNIMPLEMENTED();
339 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{
389 UNIMPLEMENTED();
390 return true;
391}
392
393bool ValidateMultMatrixx(Context *context, const GLfixed *m)
394{
395 UNIMPLEMENTED();
396 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{
507 UNIMPLEMENTED();
508 return true;
509}
510
511bool ValidatePushMatrix(Context *context)
512{
513 UNIMPLEMENTED();
514 return true;
515}
516
517bool ValidateRotatef(Context *context, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
518{
519 UNIMPLEMENTED();
520 return true;
521}
522
523bool ValidateRotatex(Context *context, GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
524{
525 UNIMPLEMENTED();
526 return true;
527}
528
529bool ValidateSampleCoveragex(Context *context, GLclampx value, GLboolean invert)
530{
531 UNIMPLEMENTED();
532 return true;
533}
534
535bool ValidateScalef(Context *context, GLfloat x, GLfloat y, GLfloat z)
536{
537 UNIMPLEMENTED();
538 return true;
539}
540
541bool ValidateScalex(Context *context, GLfixed x, GLfixed y, GLfixed z)
542{
543 UNIMPLEMENTED();
544 return true;
545}
546
547bool ValidateShadeModel(Context *context, GLenum mode)
548{
549 UNIMPLEMENTED();
550 return true;
551}
552
553bool ValidateTexCoordPointer(Context *context,
554 GLint size,
555 GLenum type,
556 GLsizei stride,
557 const void *pointer)
558{
559 UNIMPLEMENTED();
560 return true;
561}
562
563bool ValidateTexEnvf(Context *context, GLenum target, GLenum pname, GLfloat param)
564{
565 UNIMPLEMENTED();
566 return true;
567}
568
569bool ValidateTexEnvfv(Context *context, GLenum target, GLenum pname, const GLfloat *params)
570{
571 UNIMPLEMENTED();
572 return true;
573}
574
575bool ValidateTexEnvi(Context *context, GLenum target, GLenum pname, GLint param)
576{
577 UNIMPLEMENTED();
578 return true;
579}
580
581bool ValidateTexEnviv(Context *context, GLenum target, GLenum pname, const GLint *params)
582{
583 UNIMPLEMENTED();
584 return true;
585}
586
587bool ValidateTexEnvx(Context *context, GLenum target, GLenum pname, GLfixed param)
588{
589 UNIMPLEMENTED();
590 return true;
591}
592
593bool ValidateTexEnvxv(Context *context, GLenum target, GLenum pname, const GLfixed *params)
594{
595 UNIMPLEMENTED();
596 return true;
597}
598
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800599bool ValidateTexParameterx(Context *context, TextureType target, GLenum pname, GLfixed param)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500600{
601 UNIMPLEMENTED();
602 return true;
603}
604
Corentin Wallezf0e89be2017-11-08 14:00:32 -0800605bool ValidateTexParameterxv(Context *context,
606 TextureType target,
607 GLenum pname,
608 const GLfixed *params)
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500609{
610 UNIMPLEMENTED();
611 return true;
612}
613
614bool ValidateTranslatef(Context *context, GLfloat x, GLfloat y, GLfloat z)
615{
616 UNIMPLEMENTED();
617 return true;
618}
619
620bool ValidateTranslatex(Context *context, GLfixed x, GLfixed y, GLfixed z)
621{
622 UNIMPLEMENTED();
623 return true;
624}
625
626bool ValidateVertexPointer(Context *context,
627 GLint size,
628 GLenum type,
629 GLsizei stride,
630 const void *pointer)
631{
632 UNIMPLEMENTED();
633 return true;
634}
635
636bool ValidateDrawTexfOES(Context *context,
637 GLfloat x,
638 GLfloat y,
639 GLfloat z,
640 GLfloat width,
641 GLfloat height)
642{
643 UNIMPLEMENTED();
644 return true;
645}
646
647bool ValidateDrawTexfvOES(Context *context, const GLfloat *coords)
648{
649 UNIMPLEMENTED();
650 return true;
651}
652
653bool ValidateDrawTexiOES(Context *context, GLint x, GLint y, GLint z, GLint width, GLint height)
654{
655 UNIMPLEMENTED();
656 return true;
657}
658
659bool ValidateDrawTexivOES(Context *context, const GLint *coords)
660{
661 UNIMPLEMENTED();
662 return true;
663}
664
665bool ValidateDrawTexsOES(Context *context,
666 GLshort x,
667 GLshort y,
668 GLshort z,
669 GLshort width,
670 GLshort height)
671{
672 UNIMPLEMENTED();
673 return true;
674}
675
676bool ValidateDrawTexsvOES(Context *context, const GLshort *coords)
677{
678 UNIMPLEMENTED();
679 return true;
680}
681
682bool ValidateDrawTexxOES(Context *context,
683 GLfixed x,
684 GLfixed y,
685 GLfixed z,
686 GLfixed width,
687 GLfixed height)
688{
689 UNIMPLEMENTED();
690 return true;
691}
692
693bool ValidateDrawTexxvOES(Context *context, const GLfixed *coords)
694{
695 UNIMPLEMENTED();
696 return true;
697}
698
699bool ValidateCurrentPaletteMatrixOES(Context *context, GLuint matrixpaletteindex)
700{
701 UNIMPLEMENTED();
702 return true;
703}
704
705bool ValidateLoadPaletteFromModelViewMatrixOES(Context *context)
706{
707 UNIMPLEMENTED();
708 return true;
709}
710
711bool ValidateMatrixIndexPointerOES(Context *context,
712 GLint size,
713 GLenum type,
714 GLsizei stride,
715 const void *pointer)
716{
717 UNIMPLEMENTED();
718 return true;
719}
720
721bool ValidateWeightPointerOES(Context *context,
722 GLint size,
723 GLenum type,
724 GLsizei stride,
725 const void *pointer)
726{
727 UNIMPLEMENTED();
728 return true;
729}
730
731bool ValidatePointSizePointerOES(Context *context, GLenum type, GLsizei stride, const void *pointer)
732{
733 UNIMPLEMENTED();
734 return true;
735}
736
737bool ValidateQueryMatrixxOES(Context *context, GLfixed *mantissa, GLint *exponent)
738{
739 UNIMPLEMENTED();
740 return true;
741}
Lingfeng Yanga0648782018-03-12 14:45:25 -0700742
743bool ValidateGenFramebuffersOES(Context *context, GLsizei n, GLuint *framebuffers)
744{
745 UNIMPLEMENTED();
746 return true;
747}
748
749bool ValidateDeleteFramebuffersOES(Context *context, GLsizei n, const GLuint *framebuffers)
750{
751 UNIMPLEMENTED();
752 return true;
753}
754
755bool ValidateGenRenderbuffersOES(Context *context, GLsizei n, GLuint *renderbuffers)
756{
757 UNIMPLEMENTED();
758 return true;
759}
760
761bool ValidateDeleteRenderbuffersOES(Context *context, GLsizei n, const GLuint *renderbuffers)
762{
763 UNIMPLEMENTED();
764 return true;
765}
766
767bool ValidateBindFramebufferOES(Context *context, GLenum target, GLuint framebuffer)
768{
769 UNIMPLEMENTED();
770 return true;
771}
772
773bool ValidateBindRenderbufferOES(Context *context, GLenum target, GLuint renderbuffer)
774{
775 UNIMPLEMENTED();
776 return true;
777}
778
779bool ValidateCheckFramebufferStatusOES(Context *context, GLenum target)
780{
781 UNIMPLEMENTED();
782 return true;
783}
784
785bool ValidateFramebufferRenderbufferOES(Context *context,
786 GLenum target,
787 GLenum attachment,
788 GLenum rbtarget,
789 GLuint renderbuffer)
790{
791 UNIMPLEMENTED();
792 return true;
793}
794
795bool ValidateFramebufferTexture2DOES(Context *context,
796 GLenum target,
797 GLenum attachment,
798 TextureTarget textarget,
799 GLuint texture,
800 GLint level)
801{
802 UNIMPLEMENTED();
803 return true;
804}
805
806bool ValidateGenerateMipmapOES(Context *context, TextureType target)
807{
808 UNIMPLEMENTED();
809 return true;
810}
811
812bool ValidateGetFramebufferAttachmentParameterivOES(Context *context,
813 GLenum target,
814 GLenum attachment,
815 GLenum pname,
816 GLint *params)
817{
818 UNIMPLEMENTED();
819 return true;
820}
821
822bool ValidateGetRenderbufferParameterivOES(Context *context,
823 GLenum target,
824 GLenum pname,
825 GLint *params)
826{
827 UNIMPLEMENTED();
828 return true;
829}
830
831bool ValidateIsFramebufferOES(Context *context, GLuint framebuffer)
832{
833 UNIMPLEMENTED();
834 return true;
835}
836
837bool ValidateIsRenderbufferOES(Context *context, GLuint renderbuffer)
838{
839 UNIMPLEMENTED();
840 return true;
841}
842
843bool ValidateRenderbufferStorageOES(Context *context,
844 GLenum target,
845 GLint internalformat,
846 GLsizei width,
847 GLsizei height)
848{
849 UNIMPLEMENTED();
850 return true;
851}
852
853// GL_OES_texture_cube_map
854
855bool ValidateGetTexGenfvOES(Context *context, GLenum coord, GLenum pname, GLfloat *params)
856{
857 UNIMPLEMENTED();
858 return true;
859}
860
861bool ValidateGetTexGenivOES(Context *context, GLenum coord, GLenum pname, int *params)
862{
863 UNIMPLEMENTED();
864 return true;
865}
866
867bool ValidateGetTexGenxvOES(Context *context, GLenum coord, GLenum pname, GLfixed *params)
868{
869 UNIMPLEMENTED();
870 return true;
871}
872
873bool ValidateTexGenfvOES(Context *context, GLenum coord, GLenum pname, const GLfloat *params)
874{
875 UNIMPLEMENTED();
876 return true;
877}
878
879bool ValidateTexGenivOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
880{
881 UNIMPLEMENTED();
882 return true;
883}
884
885bool ValidateTexGenxvOES(Context *context, GLenum coord, GLenum pname, const GLint *param)
886{
887 UNIMPLEMENTED();
888 return true;
889}
890
891bool ValidateTexGenfOES(Context *context, GLenum coord, GLenum pname, GLfloat param)
892{
893 UNIMPLEMENTED();
894 return true;
895}
896
897bool ValidateTexGeniOES(Context *context, GLenum coord, GLenum pname, GLint param)
898{
899 UNIMPLEMENTED();
900 return true;
901}
902
903bool ValidateTexGenxOES(Context *context, GLenum coord, GLenum pname, GLfixed param)
904{
905 UNIMPLEMENTED();
906 return true;
907}
Geoff Lang2aaa7b42018-01-12 17:17:27 -0500908}