Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build for iOS, document build instructions #401

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhuowei
Copy link

@zhuowei zhuowei commented May 27, 2023

No description provided.

@CLAassistant
Copy link

CLAassistant commented May 27, 2023

CLA assistant check
All committers have signed the CLA.

@@ -28,6 +28,7 @@
#include "glwInitES20Direct.hpp"
#include "glwInitES30Direct.hpp"

#include <OpenGLES/ES3/gl.h>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need this include here?

It should be sufficient to have it in
framework/egl/egluStaticESLibrary.cpp and
framework/opengl/wrapper/glwInitES30Direct.cpp

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this I get:

VK-GL-CTS/framework/platform/ios/tcuIOSPlatform.mm:241:45: error: use of undeclared identifier 'GL_RENDERBUFFER'
        if (![getEAGLContext() renderbufferStorage:GL_RENDERBUFFER fromDrawable:(CAEAGLLayer *)m_layer])

Is there a better place I should put it? Maybe in the tcuIOSPlatform.hh next to the existing #import <OpenGLES/EAGL.h> include?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants