Commit 8ab9227c authored by Gaëtan Renaudeau's avatar Gaëtan Renaudeau

Better profiling displaying node name

parent 924597a4
......@@ -491,7 +491,7 @@ RCT_NOT_IMPLEMENTED(-init)
for (GLRenderData *child in renderData.children)
weak_recDraw(child);
RCT_PROFILE_BEGIN_EVENT(0, @"node", nil);
RCT_PROFILE_BEGIN_EVENT(0, [NSString stringWithFormat:@"node:%@", renderData.shader.name], nil);
RCT_PROFILE_BEGIN_EVENT(0, @"bind fbo", nil);
if (renderData.fboId == -1) {
......
......@@ -10,6 +10,7 @@ NS_ENUM(NSInteger) {
@interface GLShader: NSObject
@property NSString *name;
@property EAGLContext *context;
@property NSString *vert;
@property NSString *frag;
......
......@@ -36,7 +36,6 @@ GLuint compileShader (NSString* shaderName, NSString* shaderString, GLenum shade
*/
@implementation GLShader
{
NSString *_name;
EAGLContext *_context; // Context related to this shader
GLuint program; // Program of the shader
GLuint buffer; // the buffer currently contains 2 static triangles covering the surface
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment