<commit_before>#include "sqVirtualMachine.h"
#include "B3DAcceleratorPlugin.h"

extern struct VirtualMachine *interpreterProxy;

int glMode = 0; /* default to D3D */

int b3dxInitialize(void) {
  int *ptr;
  ptr =  (int*)interpreterProxy->ioLoadFunctionFrom("fUseOpenGL","");
  if(ptr) {
    glMode = *ptr;
  }

#ifdef TEA
#warning "**************************************************************"
#warning "**************************************************************"
#warning "**************************************************************"
#warning
#warning "TEA: D3D disabled"
#warning
#warning "**************************************************************"
#warning "**************************************************************"
#warning "**************************************************************"
  glMode = 1;
#endif
  if(glMode)
    return glInitialize();
  else 
    return d3dInitialize();
}

<commit_msg>Default to OpenGL instead of D3D when compiling for Croquet.<commit_after>#include "sqVirtualMachine.h"
#include "B3DAcceleratorPlugin.h"

extern struct VirtualMachine *interpreterProxy;

#ifdef CROQUET
int glMode = 1; /* default to OpenGL */
#else
int glMode = 0; /* default to D3D */
#endif

int b3dxInitialize(void) {
  int *ptr;
  ptr =  (int*)interpreterProxy->ioLoadFunctionFrom("fUseOpenGL","");
  if(ptr) {
    glMode = *ptr;
  }
  if(glMode)
    return glInitialize();
  else 
    return d3dInitialize();
}


{'fraction_non_alphanumeric': 0.358974358974359, 'fraction_numerical': 0.009702009702009701, 'mean_word_length': 6.256281407035176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5309500', 'n_tokens_mistral': 423, 'n_tokens_neox': 416, 'n_words': 94}