Remember me

Lost Password?

Register now!
Who's Online
53 user(s) are online (38 user(s) are browsing Forums)

Members: 0
Guests: 53

Support us!
Recent OS4 Files
Report message:*

Re: Porting apitrace

Subject: Re: Porting apitrace
by kas1e on 2019/4/6 12:09:35

ptitSeb says it should be enough to printf glVertexAttribPointer + glBindBuffer() (probabaly it just the same as to glBuffer(Sub)Data, just once it bind).

I just tried to patch first one, and it crashes by some reassons on that prinfs:

static void my_glVertexAttribPointer(struct OGLES2IFace *Self,GLuint indexGLint sizeGLenum typeGLboolean normalizedGLsizei stride, const GLvoid pointer)
IExec->DebugPrintF("VA %d size=%d, type=%s, norm=%d, stride=%d, pointer=%p\n"indexsizetypenormalizedstridepointer);
    if (
old_glVertexAttribPointer) {

Did you see anything wrong there ?

EDIT: ah, its glenum type %s probabaly :) I just copied line about print from gl4es relevant part, where it seems in structure so was %s

For W3DN dunno if your patching way will works : i can patch CreateContext, but then how to patch relevant functions ?

Can you give us a hint, to whhich functions of warp3dnova need to patch / printf values, to see relevant to glVertexAttribPointer() / glBindBuffer() values so to see when that 0xffffffff is starting to come up.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project