Issues with Kronos opengl creating a context

nick5454nick5454 USUniversity ✭✭✭

I am getting an error with invalid enum. The code is below:

` public virtual void OnSurfaceCreated(IGL10 gl, Javax.Microedition.Khronos.Egl.EGLConfig config)
{

            Log.Info("main", "Surface created.");

            DisplayMetrics displaymetrics = new DisplayMetrics();
            //getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
            int height = displaymetrics.HeightPixels;
            int width = displaymetrics.WidthPixels;

        mSurfaceCreated = true;
        mWidth = -1;
        mHeight = -1;

        GLES20.GlEnable (GLES20.GlTexture2d); //Enable Texture Mapping GL_TEXTURE_2D
        GLES20.GlEnable(GLES20.GlDepthTest); //Enable depth testing

`

I have this error log, the bottom 5 lines for the errors
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8896,server=y,embedding=1 [Mono] AOT module 'mscorlib.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/TestAndroidGL2.TestAndroidGL2/lib/mscorlib.dll.so' not found [Mono] Assembly mscorlib[0x5ac5ca08] added to domain RootDomain, ref_count=1 [Mono] Assembly Loader probing location: '/storage/sdcard0/Android/data/TestAndroidGL2.TestAndroidGL2/files/.__override__/TestAndroidGL2.dll'. [Mono] Assembly TestAndroidGL2[0x5cfa8188] added to domain RootDomain, ref_count=1 [Mono] AOT module '/storage/sdcard0/Android/data/TestAndroidGL2.TestAndroidGL2/files/.__override__/TestAndroidGL2.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/TestAndroidGL2.TestAndroidGL2/lib//storage/sdcard0/Android/data/TestAndroidGL2.TestAndroidGL2/files/.__override__/TestAndroidGL2.dll.so' not found [Mono] Assembly Loader loaded assembly from location: '/storage/sdcard0/Android/data/TestAndroidGL2.TestAndroidGL2/files/.__override__/TestAndroidGL2.dll'. [Mono] Config attempting to parse: '/storage/sdcard0/Android/data/TestAndroidGL2.TestAndroidGL2/files/.__override__/TestAndroidGL2.dll.config'. [Mono] Config attempting to parse: '/Users/builder/data/lanes/monodroid-mlion-monodroid-4.20-series/ba9bbbdd/source/monodroid/builds/install/mono-armv7/etc/mono/assemblies/TestAndroidGL2/TestAndroidGL2.config'. [Mono] Assembly Mono.Android.Support.v4[0x5cfacff0] added to domain RootDomain, ref_count=1 [Mono] AOT module 'Mono.Android.Support.v4.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/TestAndroidGL2.TestAndroidGL2/lib/Mono.Android.Support.v4.dll.so' not found [monodroid-gc] GREF GC Threshold: 46800 [Mono] Assembly Mono.Android[0x5cfadf40] added to domain RootDomain, ref_count=1 [Mono] AOT module 'Mono.Android.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/TestAndroidGL2.TestAndroidGL2/lib/Mono.Android.dll.so' not found [Mono] Assembly System.Core[0x6138ea98] added to domain RootDomain, ref_count=1 [Mono] AOT module 'System.Core.dll.so' not found: Cannot load library: load_library[1093]: Library '/data/data/TestAndroidGL2.TestAndroidGL2/lib/System.Core.dll.so' not found [Mono] DllImport attempting to load: '__Internal'. [Mono] DllImport loaded library '(null)'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gc_wait_for_bridge_processing'. [Mono] Probing '_monodroid_gc_wait_for_bridge_processing'. [Mono] Found as '_monodroid_gc_wait_for_bridge_processing'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_get_identity_hash_code'. [Mono] Probing '_monodroid_get_identity_hash_code'. [Mono] Found as '_monodroid_get_identity_hash_code'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_log_new'. [Mono] Probing '_monodroid_gref_log_new'. [Mono] Found as '_monodroid_gref_log_new'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for '_monodroid_gref_log_delete'. [Mono] Probing '_monodroid_gref_log_delete'. [Mono] Found as '_monodroid_gref_log_delete'. [Mono] DllImport attempting to load: '__Internal'. [Mono] DllImport loaded library '(null)'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for 'monodroid_get_system_property'. [Mono] Probing 'monodroid_get_system_property'. [Mono] Found as 'monodroid_get_system_property'. [Mono] DllImport searching in: '__Internal' ('(null)'). [Mono] Searching for 'monodroid_free'. [Mono] Probing 'monodroid_free'. [Mono] Found as 'monodroid_free'. [libEGL] loaded /system/lib/egl/libEGL_MRVL.so [libEGL] loaded /system/lib/egl/libGLESv1_CM_MRVL.so [libEGL] loaded /system/lib/egl/libGLESv2_MRVL.so [GC] <tid=7817> OES20 ===> GC Version : GC Ver-988-JB-R4-RC2-GC20 [GC] [OpenGLRenderer] Enabling debug mode 0 [GC] <tid=7843> OES20 ===> GC Version : GC Ver-988-JB-R4-RC2-GC20 [GC] [Mono] DllImport attempting to load: '/system/lib/libc.so'. [Mono] DllImport loaded library '/system/lib/libc.so'. [Mono] DllImport searching in: '/system/lib/libc.so' ('/system/lib/libc.so'). [Mono] Searching for 'gettid'. [Mono] Probing 'gettid'. [Mono] Found as 'gettid'. [main] Surface created. **[v_gal] [tid=7843] gl2mERROR: result=0x0500 @ glshEnable(1068) [v_gal] [tid=7843] !!ERROR: It's not a GLContext for OES11 [v_gal] [tid=7843] gl2mERROR: result=0x0500 @ glHint(2344) [v_gal] [tid=7843] !!ERROR: It's not a GLContext for OES11 [v_gal] [tid=7843] !!ERROR: It's not a GLContext for OES11 [v_gal] [tid=7843] !!ERROR: It's not a GLContext for OES11**

Sign In or Register to comment.