mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
Minor cleanup to PostSubBuffer sample.
We shouldn't need to query function pointers now that we're using a custom loader. Bug: angleproject:4729 Change-Id: I50f50545a2f29e16ab675afe0155700332c8f670 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2241618 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
@@ -29,13 +29,6 @@ class PostSubBufferSample : public SampleApplication
|
||||
|
||||
bool initialize() override
|
||||
{
|
||||
mPostSubBufferNV = (PFNEGLPOSTSUBBUFFERNVPROC)eglGetProcAddress("eglPostSubBufferNV");
|
||||
if (!mPostSubBufferNV)
|
||||
{
|
||||
std::cerr << "Could not load eglPostSubBufferNV.";
|
||||
return false;
|
||||
}
|
||||
|
||||
constexpr char kVS[] = R"(uniform mat4 u_mvpMatrix;
|
||||
attribute vec4 a_position;
|
||||
attribute vec2 a_texcoord;
|
||||
@@ -136,7 +129,7 @@ void main()
|
||||
EGLint windowHeight = static_cast<EGLint>(getWindow()->getHeight());
|
||||
EGLDisplay display = getDisplay();
|
||||
EGLSurface surface = getSurface();
|
||||
mPostSubBufferNV(display, surface, 60, 60, windowWidth - 120, windowHeight - 120);
|
||||
eglPostSubBufferNV(display, surface, 60, 60, windowWidth - 120, windowHeight - 120);
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -155,9 +148,6 @@ void main()
|
||||
|
||||
// Geometry data
|
||||
CubeGeometry mCube;
|
||||
|
||||
// eglPostSubBufferNV entry point
|
||||
PFNEGLPOSTSUBBUFFERNVPROC mPostSubBufferNV;
|
||||
};
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
Reference in New Issue
Block a user