From 3456f387c2598fc4c8280724030ca4676b469be9 Mon Sep 17 00:00:00 2001 From: Luis Blanco Date: Sat, 8 May 2021 23:25:39 +0300 Subject: [PATCH] Fix framebuffer method --- package.json | 2 +- src/cpp/framebuffers.cpp | 10 ---------- src/cpp/webgl.hpp | 1 - 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/package.json b/package.json index 61b05ad..9b5d6d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Luis Blanco ", "name": "webgl-raub", - "version": "2.2.3", + "version": "2.2.4", "description": "WebGL for Node.js", "license": "MIT", "main": "index.js", diff --git a/src/cpp/framebuffers.cpp b/src/cpp/framebuffers.cpp index 63d73eb..5c83684 100644 --- a/src/cpp/framebuffers.cpp +++ b/src/cpp/framebuffers.cpp @@ -47,16 +47,6 @@ JS_METHOD(bindFramebuffer) { NAPI_ENV; } -JS_METHOD(bindFramebuffer) { NAPI_ENV; - - REQ_UINT32_ARG(0, fbo); - - glBindFramebuffer(GL_FRAMEBUFFER, fbo); - RET_UNDEFINED; - -} - - JS_METHOD(blitFramebuffer) { NAPI_ENV; REQ_UINT32_ARG(0, srcX0); diff --git a/src/cpp/webgl.hpp b/src/cpp/webgl.hpp index 621c1eb..f9d3622 100644 --- a/src/cpp/webgl.hpp +++ b/src/cpp/webgl.hpp @@ -68,7 +68,6 @@ namespace webgl { JS_METHOD(deleteFramebuffer); JS_METHOD(isFramebuffer); JS_METHOD(bindFramebuffer); - JS_METHOD(bindFramebuffer); JS_METHOD(blitFramebuffer); JS_METHOD(checkFramebufferStatus); JS_METHOD(framebufferRenderbuffer);